UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
_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 */
A class representing a box shape for TSPL.
Definition _Box.h:44
id< IRuler > ruler
The ruler used to measure the box.
Definition _Box.h:56
float lineThickness
The thickness of the box's lines.
Definition _Box.h:92
id< IPoint > start
The starting point of the box.
Definition _Box.h:68
float cornerRounding
The corner rounding radius of the box.
Definition _Box.h:104
id< IPoint > end
The ending point of the box.
Definition _Box.h:80
NSString * description()
Returns a string that can be sent to the printer.
A protocol defining the interface for Box classes.
Definition IBox.h:32