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>
9 
27 typedef enum {
33 
38 typedef enum {
44 
49 typedef enum {
65 
70 typedef enum {
76 
81 typedef enum {
87 
92 typedef enum {
98 
103 typedef enum {
108 } LOTextAnchor;
109 
114 typedef enum {
119 
122 
129 typedef enum {
136 
142 typedef enum {
143  // Linear dimension units
153 
154  // Angular dimension units
157 
160 
161 
162 
167 typedef enum {
188 } LOArrowType;
189 
195 typedef enum {
205 
206 #include "entity.h"
207 #include <SketchUpAPI/color.h>
208 
209 #ifdef __cplusplus
210 extern "C" {
211 #endif // __cplusplus
212 
222 
232 
242 LO_RESULT LOStyleCopy(LOStyleRef src_style, LOStyleRef dst_style);
243 
255 LO_RESULT LOStyleGetStroked(LOStyleRef style, bool* is_stroked);
256 
265 LO_RESULT LOStyleSetStroked(LOStyleRef style, bool is_stroked);
266 
278 LO_RESULT LOStyleGetStrokeWidth(LOStyleRef style, double* stroke_width);
279 
289 LO_RESULT LOStyleSetStrokeWidth(LOStyleRef style, double stroke_width);
290 
302 LO_RESULT LOStyleGetStrokeColor(LOStyleRef style, SUColor* stroke_color);
303 
313 
326 
337 
350 
361 
374 
385 
397 LO_RESULT LOStyleGetStrokePatternScale(LOStyleRef style, double* pattern_scale);
398 
409 LO_RESULT LOStyleSetStrokePatternScale(LOStyleRef style, double pattern_scale);
410 
422 LO_RESULT LOStyleGetSolidFilled(LOStyleRef style, bool* solid_filled);
423 
432 LO_RESULT LOStyleSetSolidFilled(LOStyleRef style, bool solid_filled);
433 
446 
456 
468 LO_RESULT LOStyleGetPatternFilled(LOStyleRef style, bool* pattern_filled);
469 
478 LO_RESULT LOStyleSetPatternFilled(LOStyleRef style, bool pattern_filled);
479 
495 
507 LO_RESULT LOStyleSetPatternFillImagePath(LOStyleRef style, const char* image_path);
508 
520 LO_RESULT LOStyleGetPatternFillRotation(LOStyleRef style, double* rotation);
521 
531 LO_RESULT LOStyleSetPatternFillRotation(LOStyleRef style, double rotation);
532 
544 LO_RESULT LOStyleGetPatternFillScale(LOStyleRef style, double* scale);
545 
557 LO_RESULT LOStyleSetPatternFillScale(LOStyleRef style, double scale);
558 
571 
582 
596 
606 LO_RESULT LOStyleSetTextFontFamily(LOStyleRef style, const char* family);
607 
619 LO_RESULT LOStyleGetTextBold(LOStyleRef style, bool* is_bold);
620 
629 LO_RESULT LOStyleSetTextBold(LOStyleRef style, bool is_bold);
630 
642 LO_RESULT LOStyleGetTextItalic(LOStyleRef style, bool* is_italic);
643 
652 LO_RESULT LOStyleSetTextItalic(LOStyleRef style, bool is_italic);
653 
665 LO_RESULT LOStyleGetFontSize(LOStyleRef style, double* size_in_points);
666 
677 LO_RESULT LOStyleSetFontSize(LOStyleRef style, double size_in_points);
678 
691 
701 
714 
725 
739 
750 
763 
774 
787 
798 
811  LOStyleRef style, LODimensionRotationAlignment* alignment);
812 
823  LOStyleRef style, LODimensionRotationAlignment alignment);
824 
837  LOStyleRef style, LODimensionVerticalAlignment* alignment);
838 
851  LOStyleRef style, LODimensionVerticalAlignment alignment);
852 
867 LO_RESULT LOStyleGetDimensionUnits(LOStyleRef style, LODimensionUnits* units, double* precision);
868 
885 LO_RESULT LOStyleSetDimensionUnits(LOStyleRef style, LODimensionUnits units, double precision);
886 
898 LO_RESULT LOStyleGetSuppressDimensionUnits(LOStyleRef style, bool* is_suppressed);
899 
908 LO_RESULT LOStyleSetSuppressDimensionUnits(LOStyleRef style, bool is_suppressed);
909 
910 
911 
912 
913 
924 
943  LOStrokePattern stroke_pattern, size_t len, double widths[], size_t* num_widths);
944 
956 
967 
978 LO_RESULT LOStyleGetStartArrowSize(LOStyleRef style, double* size);
979 
989 LO_RESULT LOStyleSetStartArrowSize(LOStyleRef style, double size);
990 
1002 
1013 
1024 LO_RESULT LOStyleGetEndArrowSize(LOStyleRef style, double* size);
1025 
1035 LO_RESULT LOStyleSetEndArrowSize(LOStyleRef style, double size);
1036 
1046 LO_RESULT LOStyleIsArrowTypeFilled(LOArrowType type, bool* filled);
1047 
1061 
1076 
1077 #ifdef __cplusplus
1078 } // end extern "C"
1079 #endif // __cplusplus
1080 #endif // LAYOUT_MODEL_STYLE_H_