LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
style.h
Go to the documentation of this file.
1 // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2 // This file is intended for public distribution.
3 
4 #ifndef LAYOUT_MODEL_STYLE_H_
5 #define LAYOUT_MODEL_STYLE_H_
6 
7 #include <LayOutAPI/common.h>
8 #include <LayOutAPI/model/defs.h>
10 #include <SketchUpAPI/color.h>
11 
29 typedef enum {
35 
40 typedef enum {
46 
51 typedef enum {
67 
72 typedef enum {
78 
84 typedef enum {
89 
94 typedef enum {
100 
105 typedef enum {
111 
116 typedef enum {
121 } LOTextAnchor;
122 
127 typedef enum {
132 
135 
142 typedef enum {
149 
155 typedef enum {
156  // Linear dimension units
166 
167  // Angular dimension units
170 
173 
174 
175 
180 typedef enum {
201 } LOArrowType;
202 
208 typedef enum {
218 
219 #ifdef __cplusplus
220 extern "C" {
221 #endif // __cplusplus
222 
232 
242 
252 LO_RESULT LOStyleCopy(LOStyleRef src_style, LOStyleRef dst_style);
253 
265 LO_RESULT LOStyleGetStroked(LOStyleRef style, bool* is_stroked);
266 
275 LO_RESULT LOStyleSetStroked(LOStyleRef style, bool is_stroked);
276 
288 LO_RESULT LOStyleGetStrokeWidth(LOStyleRef style, double* stroke_width);
289 
299 LO_RESULT LOStyleSetStrokeWidth(LOStyleRef style, double stroke_width);
300 
312 LO_RESULT LOStyleGetStrokeColor(LOStyleRef style, SUColor* stroke_color);
313 
323 
336 
347 
360 
371 
384 
395 
407 LO_RESULT LOStyleGetStrokePatternScale(LOStyleRef style, double* pattern_scale);
408 
419 LO_RESULT LOStyleSetStrokePatternScale(LOStyleRef style, double pattern_scale);
420 
432 LO_RESULT LOStyleGetSolidFilled(LOStyleRef style, bool* solid_filled);
433 
442 LO_RESULT LOStyleSetSolidFilled(LOStyleRef style, bool solid_filled);
443 
456 
466 
478 LO_RESULT LOStyleGetPatternFilled(LOStyleRef style, bool* pattern_filled);
479 
488 LO_RESULT LOStyleSetPatternFilled(LOStyleRef style, bool pattern_filled);
489 
505 
517 LO_RESULT LOStyleSetPatternFillImagePath(LOStyleRef style, const char* image_path);
518 
530 LO_RESULT LOStyleGetPatternFillRotation(LOStyleRef style, double* rotation);
531 
541 LO_RESULT LOStyleSetPatternFillRotation(LOStyleRef style, double rotation);
542 
554 LO_RESULT LOStyleGetPatternFillScale(LOStyleRef style, double* scale);
555 
567 LO_RESULT LOStyleSetPatternFillScale(LOStyleRef style, double scale);
568 
581 
592 
606 
616 LO_RESULT LOStyleSetTextFontFamily(LOStyleRef style, const char* family);
617 
629 LO_RESULT LOStyleGetTextBold(LOStyleRef style, bool* is_bold);
630 
639 LO_RESULT LOStyleSetTextBold(LOStyleRef style, bool is_bold);
640 
652 LO_RESULT LOStyleGetTextItalic(LOStyleRef style, bool* is_italic);
653 
662 LO_RESULT LOStyleSetTextItalic(LOStyleRef style, bool is_italic);
663 
675 LO_RESULT LOStyleGetFontSize(LOStyleRef style, double* size_in_points);
676 
687 LO_RESULT LOStyleSetFontSize(LOStyleRef style, double size_in_points);
688 
701 
711 
724 
735 
749 
761 
775 
786 
799 
810 
823 
834 
847  LOStyleRef style, LODimensionRotationAlignment* alignment);
848 
859  LOStyleRef style, LODimensionRotationAlignment alignment);
860 
873  LOStyleRef style, LODimensionVerticalAlignment* alignment);
874 
887  LOStyleRef style, LODimensionVerticalAlignment alignment);
888 
903 LO_RESULT LOStyleGetDimensionUnits(LOStyleRef style, LODimensionUnits* units, double* precision);
904 
921 LO_RESULT LOStyleSetDimensionUnits(LOStyleRef style, LODimensionUnits units, double precision);
922 
934 LO_RESULT LOStyleGetSuppressDimensionUnits(LOStyleRef style, bool* is_suppressed);
935 
944 LO_RESULT LOStyleSetSuppressDimensionUnits(LOStyleRef style, bool is_suppressed);
945 
946 
947 
948 
949 
960 
979  LOStrokePattern stroke_pattern, size_t len, double widths[], size_t* num_widths);
980 
992 
1003 
1014 LO_RESULT LOStyleGetStartArrowSize(LOStyleRef style, double* size);
1015 
1025 LO_RESULT LOStyleSetStartArrowSize(LOStyleRef style, double size);
1026 
1038 
1049 
1060 LO_RESULT LOStyleGetEndArrowSize(LOStyleRef style, double* size);
1061 
1071 LO_RESULT LOStyleSetEndArrowSize(LOStyleRef style, double size);
1072 
1082 LO_RESULT LOStyleIsArrowTypeFilled(LOArrowType type, bool* filled);
1083 
1097 
1112 
1113 #ifdef __cplusplus
1114 } // end extern "C"
1115 #endif // __cplusplus
1116 #endif // LAYOUT_MODEL_STYLE_H_