LayOut C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pageinfo.h
Go to the documentation of this file.
1 // Copyright 2015-2023 Trimble Inc. All rights reserved.
2 // This file is intended for public distribution.
3
4 #ifndef LAYOUT_MODEL_PAGEINFO_H_
5 #define LAYOUT_MODEL_PAGEINFO_H_
6
7 #include <LayOutAPI/common.h>
8 #include <LayOutAPI/model/defs.h>
9 #include <SketchUpAPI/color.h>
10
21 typedef enum {
22 LOImageResolution_Low = 0,
23 LOImageResolution_Medium,
24 LOImageResolution_High,
25 LONumImageResolutions
26 } LOImageResolution;
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif // __cplusplus
31
41 LO_RESULT LOPageInfoGetWidth(LOPageInfoRef pageinfo, double* width);
42
52 LO_RESULT LOPageInfoSetWidth(LOPageInfoRef pageinfo, double width);
53
63 LO_RESULT LOPageInfoGetHeight(LOPageInfoRef pageinfo, double* height);
64
74 LO_RESULT LOPageInfoSetHeight(LOPageInfoRef pageinfo, double height);
75
85 LO_RESULT LOPageInfoGetLeftMargin(LOPageInfoRef pageinfo, double* margin);
86
96 LO_RESULT LOPageInfoGetRightMargin(LOPageInfoRef pageinfo, double* margin);
97
107 LO_RESULT LOPageInfoGetTopMargin(LOPageInfoRef pageinfo, double* margin);
108
118 LO_RESULT LOPageInfoGetBottomMargin(LOPageInfoRef pageinfo, double* margin);
119
130 LO_RESULT LOPageInfoSetLeftMargin(LOPageInfoRef pageinfo, double margin);
131
142 LO_RESULT LOPageInfoSetRightMargin(LOPageInfoRef pageinfo, double margin);
143
154 LO_RESULT LOPageInfoSetTopMargin(LOPageInfoRef pageinfo, double margin);
155
166 LO_RESULT LOPageInfoSetBottomMargin(LOPageInfoRef pageinfo, double margin);
167
177 LO_RESULT LOPageInfoGetPaperColor(LOPageInfoRef pageinfo, SUColor* color);
178
188 LO_RESULT LOPageInfoSetPaperColor(LOPageInfoRef pageinfo, const SUColor* color);
189
199 LO_RESULT LOPageInfoGetPrintPaperColor(LOPageInfoRef pageinfo, bool* print_paper_color);
200
209 LO_RESULT LOPageInfoSetPrintPaperColor(LOPageInfoRef pageinfo, bool print_paper_color);
210
220 LO_RESULT LOPageInfoGetMarginColor(LOPageInfoRef pageinfo, SUColor* color);
221
230 LO_RESULT LOPageInfoSetMarginColor(LOPageInfoRef pageinfo, SUColor color);
231
241 LO_RESULT LOPageInfoGetShowMargins(LOPageInfoRef pageinfo, bool* show_margins);
242
251 LO_RESULT LOPageInfoSetShowMargins(LOPageInfoRef pageinfo, bool show_margins);
252
262 LO_RESULT LOPageInfoGetPrintMargins(LOPageInfoRef pageinfo, bool* print_margins);
263
272 LO_RESULT LOPageInfoSetPrintMargins(LOPageInfoRef pageinfo, bool print_margins);
273
284 LO_RESULT LOPageInfoGetDisplayResolution(LOPageInfoRef pageinfo, LOImageResolution* resolution);
285
295 LO_RESULT LOPageInfoSetDisplayResolution(LOPageInfoRef pageinfo, LOImageResolution resolution);
296
306 LO_RESULT LOPageInfoGetOutputResolution(LOPageInfoRef pageinfo, LOImageResolution* resolution);
307
317 LO_RESULT LOPageInfoSetOutputResolution(LOPageInfoRef pageinfo, LOImageResolution resolution);
318
329 LO_RESULT LOPageInfoGetImageDisplayResolution(
330 LOPageInfoRef pageinfo, LOImageResolution* resolution);
331
342 LO_RESULT LOPageInfoSetImageDisplayResolution(LOPageInfoRef pageinfo, LOImageResolution resolution);
343
354 LO_RESULT LOPageInfoGetImageOutputResolution(LOPageInfoRef pageinfo, LOImageResolution* resolution);
355
366 LO_RESULT LOPageInfoSetImageOutputResolution(LOPageInfoRef pageinfo, LOImageResolution resolution);
367
368 #ifdef __cplusplus
369 }
370 #endif // __cplusplus
371
372 #endif // LAYOUT_MODEL_PAGEINFO_H_