UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
_PglBox.h
1//
2// _PglBox.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/5/24.
6//
7
8#ifndef _PglBox_h
9#define _PglBox_h
10
11#import <Foundation/Foundation.h>
12
13#import <UniPRT/IBox.h>
14#import <UniPRT/IPoint.h>
15#import <UniPRT/PrintPlane.h>
16#import <UniPRT/Defaults.h>
17#import <UniPRT/Point.h>
18#import <UniPRT/PglBox.h>
19
45@interface _PglBox : NSObject <IBox>
46
57@property (nonatomic, strong) id<IRuler> ruler;
58
69@property (nonatomic, strong) id<IPoint> start;
70
81@property (nonatomic, strong) id<IPoint> end;
82
93@property (nonatomic) float lineThickness;
94
105@property (nonatomic) float cornerRounding;
106
132- (instancetype)initWithStart:(id<IPoint>)start end:(id<IPoint>)end lineThickness:(float)lineThickness;
133
165- (instancetype)initWithXStart:(float)xStart yStart:(float)yStart xEnd:(float)xEnd yEnd:(float)yEnd lineThickness:(float)lineThickness;
166
183- (NSString *)description;
184
185@end
186
187#endif /* _PglBox_h */
A class representing a box shape.
Definition _PglBox.h:45
NSString * description()
Returns a string that describes the contents of the receiver.
id< IPoint > start
The starting point of the box.
Definition _PglBox.h:69
id< IRuler > ruler
The ruler used to measure the box.
Definition _PglBox.h:57
float lineThickness
The thickness of the box's lines.
Definition _PglBox.h:93
id< IPoint > end
The ending point of the box.
Definition _PglBox.h:81
float cornerRounding
The corner rounding radius of the box.
Definition _PglBox.h:105
A protocol defining the interface for Box classes.
Definition IBox.h:32