UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
_Box.h
1//
2// Box.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/5/16.
6//
7
8#ifndef _Box_h
9#define _Box_h
10
11#import <Foundation/Foundation.h>
12#import <UniPRT/IBox.h>
13#import <UniPRT/IPoint.h>
14#import <UniPRT/PrintPlane.h>
15#import <UniPRT/Defaults.h>
16#import <UniPRT/Point.h>
17#import <UniPRT/Box.h>
18
44@interface _Box : NSObject <IBox>
45
56@property (nonatomic, strong) id<IRuler> ruler;
57
68@property (nonatomic, strong) id<IPoint> start;
69
80@property (nonatomic, strong) id<IPoint> end;
81
92@property (nonatomic) float lineThickness;
93
104@property (nonatomic) float cornerRounding;
105
131- (instancetype)initWithStart:(id<IPoint>)start end:(id<IPoint>)end lineThickness:(float)lineThickness;
132
164- (instancetype)initWithXStart:(float)xStart yStart:(float)yStart xEnd:(float)xEnd yEnd:(float)yEnd lineThickness:(float)lineThickness;
165
192- (NSString *)description;
193
194@end
195
196#endif /* _Box_h */
表示 TSPL 中的方形對象的類。
Definition _Box.h:44
id< IRuler > ruler
用於測量方形對象的標尺。
Definition _Box.h:56
float lineThickness
方形對象線條的粗細。
Definition _Box.h:92
id< IPoint > start
方形對象的起始點。
Definition _Box.h:68
float cornerRounding
方形對象的圓角半徑。
Definition _Box.h:104
id< IPoint > end
方形對象的終點。
Definition _Box.h:80
NSString * description()
返回可以發送到打印機的字符串。
定義盒子類介面的協議。
Definition IBox.h:32