UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
ALine.h
1//
2// ALine.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/5/8.
6//
7
8#ifndef ALine_h
9#define ALine_h
10
11// ALine.h
12#import <Foundation/Foundation.h>
13
14#import <UniPRT/ILine.h>
15#import <UniPRT/IPoint.h>
16#import <UniPRT/IRuler.h>
17
34@interface ALine : NSObject <ILine>
35
46@property (nonatomic, strong) id<IRuler> ruler;
47
58@property (nonatomic, strong) id<IPoint> start;
59
70@property (nonatomic, strong) id<IPoint> end;
71
82@property (nonatomic, assign) float lineThickness;
83
109- (instancetype)initWithStart:(id<IPoint>)start end:(id<IPoint>)end lineThickness:(float)lineThickness;
110
121- (NSString *)description;
122
123@end
124
125#endif /* ALine_h */
Base class for lines.
Definition ALine.h:34
id< IPoint > end
Ending point of the line.
Definition ALine.h:70
id< IPoint > start
Starting point of the line.
Definition ALine.h:58
float lineThickness
Thickness of the line.
Definition ALine.h:82
NSString * description()
Returns a string representation of the line for debugging purposes.
id< IRuler > ruler
The ruler used for placement. If not set, the default ruler setting is used.
Definition ALine.h:46
A protocol defining the interface for Line classes.
Definition ILine.h:32