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