UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
Defaults.h
1//
2// Defaults.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/5/7.
6//
7
8#ifndef Defaults_h
9#define Defaults_h
10
11#import <Foundation/Foundation.h>
12#import <UniPRT/IRuler.h>
13#import <UniPRT/CONST.h>
14#import <UniPRT/IPrintResolution.h>
15#import <UniPRT/IBarcode2D.h>
16#import <UniPRT/AlignEnum.h>
17#import <UniPRT/RotateEnum.h>
18#import <UniPRT/ICellSquare.h>
19#import <UniPRT/ICellRect.h>
20
37@interface Defaults : NSObject
38
52@property (class, nonatomic, strong) id<IPrintResolution> printerResolution;
53
67@property (class, nonatomic, strong) id<IRuler> ruler;
68
79@property (class, nonatomic, assign) AlignEnum alignment;
80
91@property (class, nonatomic, assign) RotateEnum rotation;
92
103@property (class, nonatomic, strong) id<ICellSquare> cellSize;
104
115@property (class, nonatomic, strong) id<ICellRect> cellSizeRect;
116
117+ (id<IPrintResolution>)printerResolution;
118+ (void)SetPrinterResolution:(id<IPrintResolution>)printerResolution;
119
120+ (id<IRuler>)ruler;
121+ (void)SetRuler:(id<IRuler>)ruler;
122
124+ (void)SetAlignment:(AlignEnum)alignment;
125
127+ (void)SetRotation:(RotateEnum)rotation;
128
129+ (id<ICellSquare>)cellSize;
130+ (void)SetCellSize:(id<ICellSquare>)cellSize;
131
132+ (id<ICellRect>)cellSizeRect;
133+ (void)SetCellSizeRect:(id<ICellRect>)cellSizeRect;
134
135@end
136
137#endif /* Defaults_h */
AlignEnum type/formats.
Direction/Rotation for objects commands that support rotation.
The defaults used for settings if not specified during object creation or set/changed.
Definition Defaults.h:38
id< IRuler > ruler
The ruler used by all objects if a specific ruler is not changed or provided. By changing the setting...
Definition Defaults.h:67
RotateEnum rotation
Rotation setting for objects.
Definition Defaults.h:91
id< ICellSquare > cellSize
The cell/module size for 2D barcodes if no size is specified.
Definition Defaults.h:103
AlignEnum alignment
Alignment setting for objects.
Definition Defaults.h:79
id< IPrintResolution > printerResolution
The printer resolution used for all objects created unless a different resolution is set....
Definition Defaults.h:52
id< ICellRect > cellSizeRect
The cell/module size for 2D barcodes if no size is specified.
Definition Defaults.h:115