UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
IPrintPlane.h
1//
2// IPrintPlane.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/5/6.
6//
7
8#ifndef IPrintPlane_h
9#define IPrintPlane_h
10
11#import <Foundation/Foundation.h>
12#import <UniPRT/IPrintResolution.h>
13#import <UniPRT/IRuler.h>
14#import <UniPRT/IPoint.h>
15
18@protocol IPrintPlane <NSObject>
19@property (nonatomic, strong) id<IPrintResolution> printerResolution;
20@property (nonatomic, strong) id<IRuler> ruler;
21
22
23- (float)dotsPerUnitWithRuler:(id<IRuler>)ruler resolution:(id<IPrintResolution>)resolution;
24- (float)dotsToPointsWithDots:(float)dots resolution:(id<IPrintResolution>)resolution;
25- (float)inchToDotsWithInchValue:(float)inchValue resolution:(id<IPrintResolution>)resolution;
26- (float)inchToPointsWithInchValue:(float)inchValue resolution:(id<IPrintResolution>)resolution;
27- (float)mmToDotsWithMMValue:(float)mmValue resolution:(id<IPrintResolution>)resolution;
28- (float)mmToPointsWithMMValue:(float)mmValue resolution:(id<IPrintResolution>)resolution;
29- (float)toPointsWithScaledNumber:(float)scaledNumber ruler:(id<IRuler>)ruler resolution:(id<IPrintResolution>)resolution;
30- (float)toDotsWithScaledNumber:(float)scaledNumber ruler:(id<IRuler>)ruler resolution:(id<IPrintResolution>)resolution;
31- (float)toInchWithScaledNumber:(float)scaledNumber ruler:(id<IRuler>)ruler resolution:(id<IPrintResolution>)resolution;
32- (float)toMMWithScaledNumber:(float)scaledNumber ruler:(id<IRuler>)ruler resolution:(id<IPrintResolution>)resolution;
33- (id<IPoint>)toDotsWithScaledPosition:(id<IPoint>)scaledPosition ruler:(id<IRuler>)ruler resolution:(id<IPrintResolution>)resolution;
34@end
35
38#endif /* IPrintPlane_h */