LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator 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 {
121 
128 typedef enum {
135 
141 typedef enum {
142  // Linear dimension units
152 
153  // Angular dimension units
156 
159 
160 
161 
166 typedef enum {
187 } LOArrowType;
188 
194 typedef enum {
204 
205 #include "entity.h"
206 #include <SketchUpAPI/color.h>
207 
208 #ifdef __cplusplus
209 extern "C" {
210 #endif // __cplusplus
211 
221 
231 
241 LO_RESULT LOStyleCopy(LOStyleRef src_style, LOStyleRef dst_style);
242 
254 LO_RESULT LOStyleGetStroked(LOStyleRef style, bool* is_stroked);
255 
264 LO_RESULT LOStyleSetStroked(LOStyleRef style, bool is_stroked);
265 
277 LO_RESULT LOStyleGetStrokeWidth(LOStyleRef style, double* stroke_width);
278 
288 LO_RESULT LOStyleSetStrokeWidth(LOStyleRef style, double stroke_width);
289 
302  SUColor* stroke_color);
303 
313 
326  LOStrokeJoinStyle* join_type);
327 
338  LOStrokeJoinStyle join_type);
339 
352  LOStrokeCapStyle* cap_type);
353 
364  LOStrokeCapStyle cap_type);
365 
378  LOStrokePattern* stroke_pattern);
379 
390  LOStrokePattern stroke_pattern);
391 
404  double* pattern_scale);
405 
417  double pattern_scale);
418 
430 LO_RESULT LOStyleGetSolidFilled(LOStyleRef style, bool* solid_filled);
431 
440 LO_RESULT LOStyleSetSolidFilled(LOStyleRef style, bool solid_filled);
441 
454 
464 
476 LO_RESULT LOStyleGetPatternFilled(LOStyleRef style, bool* pattern_filled);
477 
486 LO_RESULT LOStyleSetPatternFilled(LOStyleRef style, bool pattern_filled);
487 
503  SUStringRef* image_path);
504 
517  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  LOPoint2D* origin);
582 
593  const LOPoint2D* origin);
594 
608  SUStringRef* family);
609 
620  const char* family);
621 
633 LO_RESULT LOStyleGetTextBold(LOStyleRef style, bool* is_bold);
634 
643 LO_RESULT LOStyleSetTextBold(LOStyleRef style, bool is_bold);
644 
656 LO_RESULT LOStyleGetTextItalic(LOStyleRef style, bool* is_italic);
657 
666 LO_RESULT LOStyleSetTextItalic(LOStyleRef style, bool is_italic);
667 
679 LO_RESULT LOStyleGetFontSize(LOStyleRef style, double* size_in_points);
680 
691 LO_RESULT LOStyleSetFontSize(LOStyleRef style, double size_in_points);
692 
705 
715 
728  LOTextUnderline* underline_type);
729 
740  LOTextUnderline underline_type);
741 
755  LOTextElevation* elevation_type);
756 
767  LOTextElevation elevation_type);
768 
781  LOTextAlignment* alignment_type);
782 
793  LOTextAlignment alignment_type);
794 
807  LOTextAnchor* anchor_type);
808 
819  LOTextAnchor anchor_type);
820 
833  LOStyleRef style,
834  LODimensionRotationAlignment* alignment);
835 
846  LOStyleRef style,
847  LODimensionRotationAlignment alignment);
848 
861  LOStyleRef style,
862  LODimensionVerticalAlignment* alignment);
863 
876  LOStyleRef style,
877  LODimensionVerticalAlignment alignment);
878 
894  LODimensionUnits* units,
895  double* precision);
896 
914  LODimensionUnits units,
915  double precision);
916 
929  bool* is_suppressed);
930 
940  bool is_suppressed);
941 
942 
943 
944 
945 
956 
975  size_t len,
976  double widths[],
977  size_t* num_widths);
978 
990  LOArrowType* type);
991 
1002  LOArrowType type);
1003 
1015  double* size);
1016 
1027  double size);
1028 
1040  LOArrowType* type);
1041 
1052  LOArrowType type);
1053 
1065  double* size);
1066 
1077  double size);
1078 
1089  bool* filled);
1090 
1104  LOSubEntityType type,
1105  LOStyleRef sub_style);
1106 
1121  LOSubEntityType type,
1122  LOStyleRef* sub_style);
1123 
1124 #ifdef __cplusplus
1125 } // end extern "C"
1126 #endif // __cplusplus
1127 #endif // LAYOUT_MODEL_STYLE_H_
1128