LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
grid.h
Go to the documentation of this file.
1 // Copyright 2015-2020 Trimble Inc. All rights reserved.
2 // This file is intended for public distribution.
3 
4 #ifndef LAYOUT_MODEL_GRID_H_
5 #define LAYOUT_MODEL_GRID_H_
6 
7 #include <LayOutAPI/common.h>
8 #include <LayOutAPI/model/defs.h>
9 
10 #include <SketchUpAPI/color.h>
11 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif // __cplusplus
20 
30 LO_RESULT LOGridGetMajorSpacing(LOGridRef grid, double* spacing);
31 
43 LO_RESULT LOGridSetMajorSpacing(LOGridRef grid, double spacing);
44 
54 LO_RESULT LOGridGetMinorDivisions(LOGridRef grid, int* divisions);
55 
67 LO_RESULT LOGridSetMinorDivisions(LOGridRef grid, int divisions);
68 
79 
90 
101 
112 
122 LO_RESULT LOGridGetShow(LOGridRef grid, bool* show);
123 
133 LO_RESULT LOGridSetShow(LOGridRef grid, bool show);
134 
144 LO_RESULT LOGridGetShowMajor(LOGridRef grid, bool* show);
145 
155 LO_RESULT LOGridSetShowMajor(LOGridRef grid, bool show);
156 
166 LO_RESULT LOGridGetShowMinor(LOGridRef grid, bool* show);
167 
177 LO_RESULT LOGridSetShowMinor(LOGridRef grid, bool show);
178 
188 LO_RESULT LOGridGetPrint(LOGridRef grid, bool* print);
189 
199 LO_RESULT LOGridSetPrint(LOGridRef grid, bool print);
200 
211 LO_RESULT LOGridGetInFront(LOGridRef grid, bool* in_front);
212 
222 LO_RESULT LOGridSetInFront(LOGridRef grid, bool in_front);
223 
234 LO_RESULT LOGridGetClipToMargins(LOGridRef grid, bool* clip);
235 
246 
247 #ifdef __cplusplus
248 }
249 #endif // __cplusplus
250 
251 #endif // LAYOUT_MODEL_GRID_H_