scriptup 2026.0.1 → 2026.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -24
  3. data/ext/arc_curve.c +50 -0
  4. data/ext/attribute_dictionaries.c +49 -32
  5. data/ext/attribute_dictionary.c +54 -127
  6. data/ext/axes.c +79 -0
  7. data/ext/behavior.c +100 -9
  8. data/ext/bounding_box.c +195 -0
  9. data/ext/camera.c +178 -0
  10. data/ext/classifications.c +85 -0
  11. data/ext/color.c +91 -163
  12. data/ext/component_definition.c +78 -162
  13. data/ext/component_instance.c +88 -9
  14. data/ext/construction.c +59 -0
  15. data/ext/curve.c +87 -0
  16. data/ext/definition_list.c +89 -109
  17. data/ext/depend +1 -0
  18. data/ext/drawing_element.c +96 -117
  19. data/ext/edge.c +147 -0
  20. data/ext/edge_use.c +37 -0
  21. data/ext/entities.c +573 -16
  22. data/ext/entities_builder.c +145 -0
  23. data/ext/entity.c +175 -215
  24. data/ext/environments.c +149 -0
  25. data/ext/extconf.rb +54 -10
  26. data/ext/face.c +331 -0
  27. data/ext/geom.c +172 -0
  28. data/ext/group.c +86 -0
  29. data/ext/helpers.c +244 -0
  30. data/ext/image.c +182 -0
  31. data/ext/image_rep.c +158 -0
  32. data/ext/instance_path.c +185 -0
  33. data/ext/lat_long.c +88 -0
  34. data/ext/layer.c +98 -0
  35. data/ext/layer_folder.c +99 -0
  36. data/ext/layers.c +122 -0
  37. data/ext/length.c +253 -0
  38. data/ext/line_styles.c +60 -0
  39. data/ext/loop.c +24 -0
  40. data/ext/material.c +144 -197
  41. data/ext/materials.c +49 -60
  42. data/ext/model.c +232 -26
  43. data/ext/options_store.c +188 -0
  44. data/ext/page.c +168 -0
  45. data/ext/pages.c +135 -0
  46. data/ext/point2d.c +195 -0
  47. data/ext/point3d.c +340 -0
  48. data/ext/polygon_mesh.c +253 -0
  49. data/ext/scriptup.h +279 -0
  50. data/ext/section_plane.c +44 -0
  51. data/ext/sketchup.c +102 -76
  52. data/ext/styles.c +91 -0
  53. data/ext/text.c +135 -0
  54. data/ext/texture.c +74 -83
  55. data/ext/texture_writer.c +104 -0
  56. data/ext/transformation.c +309 -0
  57. data/ext/transformation2d.c +190 -0
  58. data/ext/uv_helper.c +41 -0
  59. data/ext/vector2d.c +238 -0
  60. data/ext/vector3d.c +294 -0
  61. data/ext/vertex.c +67 -0
  62. data/lib/sketchup.rb +2 -2
  63. data/sig/_top_level.rbs +188 -0
  64. data/sig/array.rbs +52 -0
  65. data/sig/geom/bounding_box.rbs +28 -0
  66. data/sig/geom/bounds2d.rbs +20 -0
  67. data/sig/geom/lat_long.rbs +13 -0
  68. data/sig/geom/oriented_bounds2d.rbs +10 -0
  69. data/sig/geom/point2d.rbs +32 -0
  70. data/sig/geom/point3d.rbs +46 -0
  71. data/sig/geom/polygon_mesh.rbs +35 -0
  72. data/sig/geom/transformation.rbs +44 -0
  73. data/sig/geom/transformation2d.rbs +26 -0
  74. data/sig/geom/utm.rbs +14 -0
  75. data/sig/geom/vector2d.rbs +40 -0
  76. data/sig/geom/vector3d.rbs +49 -0
  77. data/sig/geom.rbs +25 -0
  78. data/sig/language_handler.rbs +8 -0
  79. data/sig/layout/angular_dimension.rbs +32 -0
  80. data/sig/layout/auto_text_definition.rbs +73 -0
  81. data/sig/layout/auto_text_definitions.rbs +15 -0
  82. data/sig/layout/connection_point.rbs +6 -0
  83. data/sig/layout/dictionary.rbs +18 -0
  84. data/sig/layout/document.rbs +61 -0
  85. data/sig/layout/ellipse.rbs +5 -0
  86. data/sig/layout/entities.rbs +10 -0
  87. data/sig/layout/entity.rbs +28 -0
  88. data/sig/layout/formatted_text.rbs +30 -0
  89. data/sig/layout/grid.rbs +24 -0
  90. data/sig/layout/group.rbs +17 -0
  91. data/sig/layout/image.rbs +7 -0
  92. data/sig/layout/label.rbs +31 -0
  93. data/sig/layout/layer.rbs +21 -0
  94. data/sig/layout/layer_instance.rbs +9 -0
  95. data/sig/layout/layers.rbs +18 -0
  96. data/sig/layout/linear_dimension.rbs +39 -0
  97. data/sig/layout/locked_entity_error.rbs +4 -0
  98. data/sig/layout/locked_layer_error.rbs +4 -0
  99. data/sig/layout/page.rbs +20 -0
  100. data/sig/layout/page_info.rbs +37 -0
  101. data/sig/layout/pages.rbs +17 -0
  102. data/sig/layout/path.rbs +34 -0
  103. data/sig/layout/rectangle.rbs +15 -0
  104. data/sig/layout/reference_entity.rbs +7 -0
  105. data/sig/layout/sketch_up_model.rbs +54 -0
  106. data/sig/layout/style.rbs +150 -0
  107. data/sig/layout/table.rbs +17 -0
  108. data/sig/layout/table_cell.rbs +13 -0
  109. data/sig/layout/table_column.rbs +10 -0
  110. data/sig/layout/table_row.rbs +10 -0
  111. data/sig/layout.rbs +4 -0
  112. data/sig/length.rbs +37 -0
  113. data/sig/numeric.rbs +23 -0
  114. data/sig/sketchup/animation.rbs +8 -0
  115. data/sig/sketchup/app_observer.rbs +11 -0
  116. data/sig/sketchup/arc_curve.rbs +14 -0
  117. data/sig/sketchup/attribute_dictionaries.rbs +11 -0
  118. data/sig/sketchup/attribute_dictionary.rbs +18 -0
  119. data/sig/sketchup/axes.rbs +13 -0
  120. data/sig/sketchup/behavior.rbs +19 -0
  121. data/sig/sketchup/camera.rbs +33 -0
  122. data/sig/sketchup/classification_schema.rbs +8 -0
  123. data/sig/sketchup/classifications.rbs +12 -0
  124. data/sig/sketchup/color.rbs +22 -0
  125. data/sig/sketchup/component_definition.rbs +43 -0
  126. data/sig/sketchup/component_instance.rbs +32 -0
  127. data/sig/sketchup/console.rbs +8 -0
  128. data/sig/sketchup/construction_line.rbs +17 -0
  129. data/sig/sketchup/construction_point.rbs +5 -0
  130. data/sig/sketchup/curve.rbs +13 -0
  131. data/sig/sketchup/definition_list.rbs +26 -0
  132. data/sig/sketchup/definition_observer.rbs +6 -0
  133. data/sig/sketchup/definitions_observer.rbs +8 -0
  134. data/sig/sketchup/dimension.rbs +18 -0
  135. data/sig/sketchup/dimension_linear.rbs +24 -0
  136. data/sig/sketchup/dimension_observer.rbs +5 -0
  137. data/sig/sketchup/dimension_radial.rbs +9 -0
  138. data/sig/sketchup/drawingelement.rbs +18 -0
  139. data/sig/sketchup/edge.rbs +24 -0
  140. data/sig/sketchup/edge_use.rbs +13 -0
  141. data/sig/sketchup/entities.rbs +61 -0
  142. data/sig/sketchup/entities_builder.rbs +15 -0
  143. data/sig/sketchup/entities_observer.rbs +9 -0
  144. data/sig/sketchup/entity.rbs +21 -0
  145. data/sig/sketchup/entity_observer.rbs +6 -0
  146. data/sig/sketchup/environment.rbs +25 -0
  147. data/sig/sketchup/environments.rbs +18 -0
  148. data/sig/sketchup/environments_observer.rbs +8 -0
  149. data/sig/sketchup/extensions_manager.rbs +11 -0
  150. data/sig/sketchup/face.rbs +44 -0
  151. data/sig/sketchup/frame_change_observer.rbs +5 -0
  152. data/sig/sketchup/group.rbs +38 -0
  153. data/sig/sketchup/http/request.rbs +17 -0
  154. data/sig/sketchup/http/response.rbs +7 -0
  155. data/sig/sketchup/http.rbs +27 -0
  156. data/sig/sketchup/image.rbs +23 -0
  157. data/sig/sketchup/image_rep.rbs +17 -0
  158. data/sig/sketchup/importer.rbs +14 -0
  159. data/sig/sketchup/input_point.rbs +25 -0
  160. data/sig/sketchup/instance_observer.rbs +6 -0
  161. data/sig/sketchup/instance_path.rbs +20 -0
  162. data/sig/sketchup/layer.rbs +20 -0
  163. data/sig/sketchup/layer_folder.rbs +26 -0
  164. data/sig/sketchup/layers.rbs +30 -0
  165. data/sig/sketchup/layers_observer.rbs +13 -0
  166. data/sig/sketchup/licensing/extension_license.rbs +8 -0
  167. data/sig/sketchup/licensing.rbs +15 -0
  168. data/sig/sketchup/line_style.rbs +5 -0
  169. data/sig/sketchup/line_styles.rbs +13 -0
  170. data/sig/sketchup/load_handler.rbs +8 -0
  171. data/sig/sketchup/loop.rbs +10 -0
  172. data/sig/sketchup/material.rbs +74 -0
  173. data/sig/sketchup/materials.rbs +22 -0
  174. data/sig/sketchup/materials_observer.rbs +10 -0
  175. data/sig/sketchup/menu.rbs +9 -0
  176. data/sig/sketchup/model.rbs +105 -0
  177. data/sig/sketchup/model_observer.rbs +23 -0
  178. data/sig/sketchup/options_manager.rbs +12 -0
  179. data/sig/sketchup/options_provider.rbs +23 -0
  180. data/sig/sketchup/options_provider_observer.rbs +5 -0
  181. data/sig/sketchup/overlay.rbs +21 -0
  182. data/sig/sketchup/overlays_manager.rbs +10 -0
  183. data/sig/sketchup/page.rbs +55 -0
  184. data/sig/sketchup/pages.rbs +25 -0
  185. data/sig/sketchup/pages_observer.rbs +7 -0
  186. data/sig/sketchup/pick_helper.rbs +28 -0
  187. data/sig/sketchup/regional_settings.rbs +7 -0
  188. data/sig/sketchup/rendering_options.rbs +89 -0
  189. data/sig/sketchup/rendering_options_observer.rbs +5 -0
  190. data/sig/sketchup/section_plane.rbs +12 -0
  191. data/sig/sketchup/selection.rbs +31 -0
  192. data/sig/sketchup/selection_observer.rbs +8 -0
  193. data/sig/sketchup/set.rbs +15 -0
  194. data/sig/sketchup/shadow_info.rbs +18 -0
  195. data/sig/sketchup/shadow_info_observer.rbs +5 -0
  196. data/sig/sketchup/skp.rbs +5 -0
  197. data/sig/sketchup/snap.rbs +10 -0
  198. data/sig/sketchup/style.rbs +9 -0
  199. data/sig/sketchup/styles.rbs +21 -0
  200. data/sig/sketchup/text.rbs +22 -0
  201. data/sig/sketchup/texture.rbs +14 -0
  202. data/sig/sketchup/texture_writer.rbs +14 -0
  203. data/sig/sketchup/tool.rbs +45 -0
  204. data/sig/sketchup/tools.rbs +14 -0
  205. data/sig/sketchup/tools_observer.rbs +6 -0
  206. data/sig/sketchup/uv_helper.rbs +6 -0
  207. data/sig/sketchup/vertex.rbs +11 -0
  208. data/sig/sketchup/view.rbs +87 -0
  209. data/sig/sketchup/view_observer.rbs +6 -0
  210. data/sig/sketchup.rbs +137 -0
  211. data/sig/sketchup_extension.rbs +23 -0
  212. data/sig/string.rbs +5 -0
  213. data/sig/ui/command.rbs +20 -0
  214. data/sig/ui/html_dialog.rbs +29 -0
  215. data/sig/ui/notification.rbs +16 -0
  216. data/sig/ui/toolbar.rbs +18 -0
  217. data/sig/ui/web_dialog.rbs +38 -0
  218. data/sig/ui.rbs +66 -0
  219. metadata +204 -287
  220. data/ext/attribute_dictionaries.h +0 -8
  221. data/ext/attribute_dictionary.h +0 -8
  222. data/ext/behavior.h +0 -8
  223. data/ext/color.h +0 -8
  224. data/ext/component_definition.h +0 -8
  225. data/ext/component_instance.h +0 -8
  226. data/ext/definition_list.h +0 -8
  227. data/ext/drawing_element.h +0 -8
  228. data/ext/entities.h +0 -8
  229. data/ext/entity.h +0 -8
  230. data/ext/material.h +0 -8
  231. data/ext/materials.h +0 -8
  232. data/ext/model.h +0 -8
  233. data/ext/not_implemented.c +0 -88
  234. data/ext/not_implemented.h +0 -20
  235. data/ext/sketchup.h +0 -9
  236. data/ext/texture.h +0 -8
  237. data/ext/typed_value.c +0 -84
  238. data/ext/typed_value.h +0 -11
  239. data/ext/utils.h +0 -111
  240. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeometry.dylib +0 -0
  241. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeoutils.dylib +0 -0
  242. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonImage.dylib +0 -4
  243. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonPreferences.dylib +0 -0
  244. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUnits.dylib +0 -0
  245. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUtils.dylib +0 -0
  246. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonZip.dylib +0 -0
  247. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +0 -36
  248. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +0 -59
  249. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +0 -262
  250. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +0 -118
  251. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +0 -107
  252. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +0 -178
  253. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +0 -19
  254. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +0 -70
  255. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +0 -34
  256. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +0 -153
  257. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +0 -96
  258. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +0 -98
  259. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +0 -64
  260. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +0 -321
  261. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +0 -163
  262. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +0 -235
  263. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +0 -285
  264. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +0 -154
  265. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +0 -165
  266. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +0 -187
  267. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +0 -84
  268. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +0 -43
  269. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +0 -424
  270. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +0 -244
  271. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +0 -17
  272. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +0 -161
  273. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +0 -242
  274. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +0 -398
  275. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +0 -89
  276. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +0 -125
  277. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +0 -86
  278. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +0 -629
  279. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition_snap_to_behavior_private.h +0 -46
  280. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +0 -344
  281. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +0 -143
  282. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +0 -147
  283. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +0 -224
  284. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +0 -421
  285. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +0 -194
  286. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +0 -253
  287. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +0 -198
  288. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +0 -92
  289. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +0 -70
  290. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +0 -271
  291. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +0 -214
  292. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +0 -879
  293. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +0 -189
  294. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +0 -80
  295. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +0 -90
  296. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environment.h +0 -382
  297. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environments.h +0 -133
  298. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +0 -702
  299. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +0 -138
  300. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +0 -20
  301. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +0 -695
  302. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +0 -245
  303. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +0 -155
  304. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +0 -153
  305. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +0 -289
  306. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +0 -275
  307. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +0 -266
  308. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +0 -265
  309. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +0 -301
  310. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +0 -211
  311. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +0 -81
  312. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +0 -65
  313. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +0 -182
  314. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +0 -797
  315. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +0 -187
  316. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +0 -1826
  317. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_entity_type_private.h +0 -44
  318. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +0 -49
  319. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +0 -72
  320. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +0 -79
  321. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +0 -166
  322. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +0 -140
  323. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +0 -180
  324. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +0 -1016
  325. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +0 -56
  326. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +0 -26
  327. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +0 -212
  328. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +0 -156
  329. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +0 -147
  330. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +0 -45
  331. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/snap.h +0 -183
  332. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/space.h +0 -26
  333. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +0 -303
  334. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +0 -192
  335. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +0 -392
  336. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +0 -380
  337. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +0 -280
  338. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +0 -390
  339. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +0 -79
  340. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +0 -154
  341. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +0 -125
  342. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +0 -65
  343. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +0 -16
  344. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +0 -16
  345. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +0 -239
  346. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +0 -124
  347. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +0 -50
  348. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
  349. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +0 -891
  350. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
  351. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
  352. data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
  353. data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
  354. data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
  355. data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
  356. data/sketchup-sdk-win/binaries/layout/x64/LayOutView.dll +0 -4
  357. data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
  358. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
  359. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
  360. data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
  361. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
  362. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
  363. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
  364. data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
  365. data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +0 -117
  366. data/sketchup-sdk-win/headers/LayOutAPI/common.h +0 -22
  367. data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +0 -78
  368. data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +0 -36
  369. data/sketchup-sdk-win/headers/LayOutAPI/layout.h +0 -49
  370. data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +0 -468
  371. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +0 -569
  372. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +0 -79
  373. data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +0 -107
  374. data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +0 -42
  375. data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +0 -120
  376. data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +0 -937
  377. data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +0 -78
  378. data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +0 -78
  379. data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +0 -402
  380. data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +0 -49
  381. data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +0 -114
  382. data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +0 -397
  383. data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +0 -251
  384. data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +0 -244
  385. data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +0 -146
  386. data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +0 -109
  387. data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +0 -332
  388. data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +0 -207
  389. data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +0 -117
  390. data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +0 -69
  391. data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +0 -508
  392. data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +0 -331
  393. data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +0 -372
  394. data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +0 -81
  395. data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +0 -464
  396. data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +0 -240
  397. data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +0 -120
  398. data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +0 -681
  399. data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +0 -1116
  400. data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +0 -472
  401. data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +0 -180
  402. data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +0 -36
  403. data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +0 -59
  404. data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +0 -262
  405. data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +0 -118
  406. data/sketchup-sdk-win/headers/SketchUpAPI/color.h +0 -107
  407. data/sketchup-sdk-win/headers/SketchUpAPI/common.h +0 -178
  408. data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +0 -19
  409. data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +0 -70
  410. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +0 -34
  411. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +0 -153
  412. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +0 -96
  413. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +0 -98
  414. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +0 -64
  415. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +0 -321
  416. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +0 -163
  417. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +0 -235
  418. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +0 -285
  419. data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +0 -154
  420. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +0 -165
  421. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +0 -187
  422. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +0 -84
  423. data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +0 -43
  424. data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +0 -424
  425. data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +0 -244
  426. data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +0 -17
  427. data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +0 -161
  428. data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +0 -242
  429. data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +0 -398
  430. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +0 -89
  431. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +0 -125
  432. data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +0 -86
  433. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +0 -629
  434. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition_snap_to_behavior_private.h +0 -46
  435. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +0 -344
  436. data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +0 -143
  437. data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +0 -147
  438. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +0 -224
  439. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +0 -421
  440. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +0 -194
  441. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +0 -253
  442. data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +0 -198
  443. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +0 -92
  444. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +0 -70
  445. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +0 -271
  446. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +0 -214
  447. data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +0 -879
  448. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +0 -189
  449. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +0 -80
  450. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +0 -90
  451. data/sketchup-sdk-win/headers/SketchUpAPI/model/environment.h +0 -382
  452. data/sketchup-sdk-win/headers/SketchUpAPI/model/environments.h +0 -133
  453. data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +0 -702
  454. data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +0 -138
  455. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +0 -20
  456. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +0 -695
  457. data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +0 -245
  458. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +0 -155
  459. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +0 -153
  460. data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +0 -289
  461. data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +0 -275
  462. data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +0 -266
  463. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +0 -265
  464. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +0 -301
  465. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +0 -211
  466. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +0 -81
  467. data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +0 -65
  468. data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +0 -182
  469. data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +0 -797
  470. data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +0 -187
  471. data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +0 -1826
  472. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_entity_type_private.h +0 -44
  473. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +0 -49
  474. data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +0 -72
  475. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +0 -79
  476. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +0 -166
  477. data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +0 -140
  478. data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +0 -180
  479. data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +0 -1016
  480. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +0 -56
  481. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +0 -26
  482. data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +0 -212
  483. data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +0 -156
  484. data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +0 -147
  485. data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +0 -45
  486. data/sketchup-sdk-win/headers/SketchUpAPI/model/snap.h +0 -183
  487. data/sketchup-sdk-win/headers/SketchUpAPI/model/space.h +0 -26
  488. data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +0 -303
  489. data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +0 -192
  490. data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +0 -392
  491. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +0 -380
  492. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +0 -280
  493. data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +0 -390
  494. data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +0 -79
  495. data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +0 -154
  496. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +0 -125
  497. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +0 -65
  498. data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +0 -16
  499. data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +0 -16
  500. data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +0 -239
  501. data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +0 -124
@@ -1,1116 +0,0 @@
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
- #include <LayOutAPI/geometry/geometry.h>
10
- #include <SketchUpAPI/color.h>
11
-
12
- /**
13
- @struct LOStyleRef
14
- @brief References a collection of style attributes that determine the
15
- visual appearance of entities. Style attributes are those attributes
16
- which the user can manipulate in LayOut's inspector windows. For
17
- example, shape style attributes that define stroke and fill, or text
18
- style attributes that define the font for formatted text. The document
19
- maintains a default style for various types of entities, and it is
20
- possible to apply the style of one entity to another. \ref LOStyleRef
21
- objects are transient and do not belong to a document.
22
- */
23
-
24
- /**
25
- @enum LOStrokeJoinStyle
26
- @brief Defines how to draw the connection between two segments of a path's
27
- stroke.
28
- */
29
- typedef enum {
30
- LOStrokeJoinStyle_Miter = 0, ///< The corner between two segments will be pointed.
31
- LOStrokeJoinStyle_Round, ///< The corner between two segments will be rounded.
32
- LOStrokeJoinStyle_Bevel, ///< The corner between two segments will be flat.
33
- LONumStrokeJoinStyles
34
- } LOStrokeJoinStyle;
35
-
36
- /**
37
- @enum LOStrokeCapStyle
38
- @brief Defines how to draw the end-caps of a path's stroke.
39
- */
40
- typedef enum {
41
- LOStrokeCapStyle_Flat = 0, ///< The end caps will be flat.
42
- LOStrokeCapStyle_Round, ///< The end caps will be round.
43
- LOStrokeCapStyle_Square, ///< The end caps will be square.
44
- LONumStrokeCapStyles
45
- } LOStrokeCapStyle;
46
-
47
- /**
48
- @enum LOStrokePattern
49
- @brief Defines the stippling pattern of a path's stroke.
50
- */
51
- typedef enum {
52
- LOStrokePattern_Solid = 0, ///< Solid pattern.
53
- LOStrokePattern_Dash, ///< Dashed pattern.
54
- LOStrokePattern_Dot, ///< Dotted pattern.
55
- LOStrokePattern_DashDot, ///< Repeating dash-dot pattern.
56
- LOStrokePattern_DashDotDot, ///< Repeating dash-dot-dot pattern.
57
- LOStrokePattern_DashSpace, ///< Deprecated in 2020.2. Use LOStrokePattern_Dash instead.
58
- LOStrokePattern_DashDotDotDot, ///< Repeating dash-dot-dot-dot pattern.
59
- LOStrokePattern_DashDashDot, ///< Repeating dash-dash-dot pattern.
60
- LOStrokePattern_DashDashDotDot, ///< Repeating dash-dash-dot-dot pattern.
61
- LOStrokePattern_DashDashDotDotDot, ///< Repeating dash-dash-dot-dot-dot pattern.
62
- LOStrokePattern_Center, ///< Repeating center line type pattern.
63
- LOStrokePattern_Phantom, ///< Repeating phantom line type pattern.
64
- LOStrokePattern_ShortDash, ///< Repeating short dash pattern.
65
- LONumStrokePatterns
66
- } LOStrokePattern;
67
-
68
- /**
69
- @enum LOTextUnderline
70
- @brief Defines underline styles for formatted text.
71
- */
72
- typedef enum {
73
- LOTextUnderline_None = 0, ///< No underline.
74
- LOTextUnderline_Single, ///< Single underline.
75
- LOTextUnderline_Double, ///< Double underline.
76
- LONumTextUnderlines
77
- } LOTextUnderline;
78
-
79
- /**
80
- @enum LOTextStrikeThrough
81
- @brief Defines strike through styles for formatted text.
82
- @since LayOut 2026.0, API 11.0
83
- */
84
- typedef enum {
85
- LOTextStrikeThrough_None = 0, ///< No strike through.
86
- LOTextStrikeThrough_Single, ///< Single strike through.
87
- LONumTextStrikeThroughs
88
- } LOTextStrikeThrough;
89
-
90
- /**
91
- @enum LOTextElevation
92
- @brief Defines super/subscript options for formatted text.
93
- */
94
- typedef enum {
95
- LOTextElevation_Normal = 0, ///< Normal text.
96
- LOTextElevation_Superscript, ///< Superscript text.
97
- LOTextElevation_Subscript, ///< Subscript text.
98
- LONumTextElevations
99
- } LOTextElevation;
100
-
101
- /**
102
- @enum LOTextAlignment
103
- @brief Defines left/right/center text alignment for formatted text.
104
- */
105
- typedef enum {
106
- LOTextAlignment_Left = 0, ///< Left-aligned text.
107
- LOTextAlignment_Right, ///< Right-aligned text.
108
- LOTextAlignment_Center, ///< Center-aligned text.
109
- LONumTextAlignments
110
- } LOTextAlignment;
111
-
112
- /**
113
- @enum LOTextAnchor
114
- @brief Defines top/center/bottom text anchoring for formatted text.
115
- */
116
- typedef enum {
117
- LOTextAnchor_Top = 0, ///< Top-anchored text.
118
- LOTextAnchor_Center, ///< Center-anchored text.
119
- LOTextAnchor_Bottom, ///< Bottom-anchored text.
120
- LONumTextAnchors
121
- } LOTextAnchor;
122
-
123
- /**
124
- @enum LODimensionRotationAlignment
125
- @brief Represents how the dimension text is oriented on the page.
126
- */
127
- typedef enum {
128
- LODimensionRotationAlignment_Horizontal = 0, ///< Align the text horizontally.
129
- LODimensionRotationAlignment_Vertical, ///< Align the text vertically.
130
- LODimensionRotationAlignment_Align, ///< Align the text parallel to the dimension line.
131
- LODimensionRotationAlignment_Perpendicular, ///< Align the text perpendicular to the dimension
132
- ///< line.
133
- LONumDimensionRotationAlignments
134
- } LODimensionRotationAlignment;
135
-
136
- /**
137
- @enum LODimensionVerticalAlignment
138
- @brief Represents how the dimension text is positioned. The position is
139
- relative to the dimension line. \ref LODimensionVerticalAlignment_Offset
140
- indicates that the text box position is based on a custom offset.
141
- */
142
- typedef enum {
143
- LODimensionVerticalAlignment_Above = 0, ///< Position the text above the dimension line.
144
- LODimensionVerticalAlignment_Center, ///< Position the text on top of the dimension line.
145
- LODimensionVerticalAlignment_Below, ///< Position the text under the dimension line.
146
- LODimensionVerticalAlignment_Offset, ///< Position the text in an arbitrary location.
147
- LONumDimensionVerticalAlignments
148
- } LODimensionVerticalAlignment;
149
-
150
- /**
151
- @enum LODimensionUnits
152
- @brief Defines the different units formats that are available for linear and
153
- angular dimensions.
154
- */
155
- typedef enum {
156
- // Linear dimension units
157
- LODimensionUnits_FractionalInches = 0, ///< 60"
158
- LODimensionUnits_ArchitecturalInches, ///< 6-1/2"
159
- LODimensionUnits_EngineeringFeet, ///< 7.250'
160
- LODimensionUnits_DecimalInches, ///< 6.5"
161
- LODimensionUnits_DecimalFeet, ///< 0.54167'
162
- LODimensionUnits_DecimalMillimeters, ///< 165.1 mm
163
- LODimensionUnits_DecimalCentimeters, ///< 16.51 cm
164
- LODimensionUnits_DecimalMeters, ///< 1.651 m
165
- LODimensionUnits_DecimalPoints, ///< 468 pt
166
-
167
- // Angular dimension units
168
- LODimensionUnits_Degrees, ///< 21°
169
- LODimensionUnits_Radians, ///< 0.36 r
170
-
171
- LONumDimensionUnits
172
- } LODimensionUnits;
173
-
174
-
175
-
176
- /**
177
- @enum LOArrowType
178
- @brief Defines the arrowhead types available for a path entity.
179
- */
180
- typedef enum {
181
- LOArrowType_None = 0, ///< No arrowhead.
182
- LOArrowType_FilledTriangle, ///< Filled triangle arrowhead.
183
- LOArrowType_OpenTriangle, ///< Non-filled triangle arrowhead.
184
- LOArrowType_FilledSkinnyTriangle, ///< Filled skinny triangle arrowhead.
185
- LOArrowType_OpenSkinnyTriangle, ///< Non-filled skinny triangle arrowhead.
186
- LOArrowType_OpenArrow90, ///< 90 degree open-sided arrowhead.
187
- LOArrowType_OpenArrow120, ///< 120 degree open-sided arrowhead.
188
- LOArrowType_FilledCircle, ///< Filled circle arrowhead.
189
- LOArrowType_OpenCircle, ///< Non-filled circle arrowhead.
190
- LOArrowType_FilledSquare, ///< Filled square arrowhead.
191
- LOArrowType_OpenSquare, ///< Non-filled square arrowhead.
192
- LOArrowType_FilledDiamond, ///< Filled diamond arrowhead.
193
- LOArrowType_OpenDiamond, ///< Non-filled diamond arrowhead.
194
- LOArrowType_Star, ///< Star-shaped arrowhead.
195
- LOArrowType_T, ///< T-shaped arrowhead.
196
- LOArrowType_SlashRight, ///< Right slash arrowhead.
197
- LOArrowType_SlashLeft, ///< Left slash arrowhead.
198
- LOArrowType_Underrun, ///< Underrun arrowhead.
199
- LOArrowType_Overrun, ///< Overrun arrowhead.
200
- LONumArrowTypes
201
- } LOArrowType;
202
-
203
- /**
204
- @enum LOSubEntityType
205
- @brief Defines the types of sub entity that may have style attributes applied
206
- directly to them.
207
- */
208
- typedef enum {
209
- LOSubEntityType_LabelLeaderLine = 0, ///< A label's leader line object.
210
- LOSubEntityType_LabelText, ///< A label's text object.
211
- LOSubEntityType_DimensionStartExtensionLine, ///< A dimension's start extension line object.
212
- LOSubEntityType_DimensionEndExtensionLine, ///< A dimension's end extension line object.
213
- LOSubEntityType_DimensionDimensionLine, ///< A dimension's dimension line object.
214
- LOSubEntityType_DimensionLeaderLine, ///< A dimension's leader line object.
215
- LOSubEntityType_DimensionText, ///< A dimension's text object.
216
- LONumSubEntityTypes
217
- } LOSubEntityType;
218
-
219
- #ifdef __cplusplus
220
- extern "C" {
221
- #endif // __cplusplus
222
-
223
- /**
224
- @brief Creates a new empty style object.
225
- @param[out] style The style object.
226
- @return
227
- - \ref SU_ERROR_NONE on success
228
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if style is NULL
229
- - \ref SU_ERROR_OVERWRITE_VALID if *style already refers to a valid object
230
- */
231
- LO_RESULT LOStyleCreate(LOStyleRef* style);
232
-
233
- /**
234
- @brief Releases a style object. *style will be set to invalid by this function.
235
- @param[in] style The style object.
236
- @return
237
- - \ref SU_ERROR_NONE on success
238
- - \ref SU_ERROR_NULL_POINTER_INPUT if style is NULL
239
- - \ref SU_ERROR_INVALID_INPUT if *style does not refer to a valid object
240
- */
241
- LO_RESULT LOStyleRelease(LOStyleRef* style);
242
-
243
- /**
244
- @brief Copies the style attributes from one style object to another.
245
- @param[in] src_style The source style object.
246
- @param[out] dst_style The destination style object.
247
- @return
248
- - \ref SU_ERROR_NONE on success
249
- - \ref SU_ERROR_INVALID_INPUT if src_style does not refer to a valid object
250
- - \ref SU_ERROR_INVALID_OUTPUT if dst_style does not refer to a valid object
251
- */
252
- LO_RESULT LOStyleCopy(LOStyleRef src_style, LOStyleRef dst_style);
253
-
254
- /**
255
- @brief Gets whether or not a style has a stroke.
256
- @param[in] style The style object.
257
- @param[out] is_stroked Whether there is a stroke or not.
258
- @return
259
- - \ref SU_ERROR_NONE on success
260
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
261
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_stroked is NULL
262
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
263
- attribute
264
- */
265
- LO_RESULT LOStyleGetStroked(LOStyleRef style, bool* is_stroked);
266
-
267
- /**
268
- @brief Sets whether or not a style has a stroke.
269
- @param[in] style The style object.
270
- @param[in] is_stroked Whether there should be a stroke or not.
271
- @return
272
- - \ref SU_ERROR_NONE on success
273
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
274
- */
275
- LO_RESULT LOStyleSetStroked(LOStyleRef style, bool is_stroked);
276
-
277
- /**
278
- @brief Gets the stroke width of a style.
279
- @param[in] style The style object.
280
- @param[out] stroke_width The stroke width.
281
- @return
282
- - \ref SU_ERROR_NONE on success
283
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
284
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if stroke_width is NULL
285
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
286
- attribute
287
- */
288
- LO_RESULT LOStyleGetStrokeWidth(LOStyleRef style, double* stroke_width);
289
-
290
- /**
291
- @brief Sets the stroke width of a style.
292
- @param[in] style The style object.
293
- @param[in] stroke_width The stroke width.
294
- @return
295
- - \ref SU_ERROR_NONE on success
296
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
297
- - \ref SU_ERROR_OUT_OF_RANGE if stroke_width is less than 0.0
298
- */
299
- LO_RESULT LOStyleSetStrokeWidth(LOStyleRef style, double stroke_width);
300
-
301
- /**
302
- @brief Gets the stroke color of a style.
303
- @param[in] style The style object.
304
- @param[out] stroke_color The stroke color.
305
- @return
306
- - \ref SU_ERROR_NONE on success
307
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
308
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if stroke_color is NULL
309
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
310
- attribute
311
- */
312
- LO_RESULT LOStyleGetStrokeColor(LOStyleRef style, SUColor* stroke_color);
313
-
314
- /**
315
- @brief Sets the stroke color of a style.
316
- @param[in] style The style object.
317
- @param[in] stroke_color The stroke color.
318
- @return
319
- - \ref SU_ERROR_NONE on success
320
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
321
- */
322
- LO_RESULT LOStyleSetStrokeColor(LOStyleRef style, SUColor stroke_color);
323
-
324
- /**
325
- @brief Gets the stroke join style of a style.
326
- @param[in] style The style object.
327
- @param[out] join_type The join style.
328
- @return
329
- - \ref SU_ERROR_NONE on success
330
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
331
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if join_type is NULL
332
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
333
- attribute
334
- */
335
- LO_RESULT LOStyleGetStrokeJoinStyle(LOStyleRef style, LOStrokeJoinStyle* join_type);
336
-
337
- /**
338
- @brief Sets the stroke join style of a style.
339
- @param[in] style The style object.
340
- @param[in] join_type The join style.
341
- @return
342
- - \ref SU_ERROR_NONE on success
343
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
344
- - \ref SU_ERROR_OUT_OF_RANGE if join_type is invalid
345
- */
346
- LO_RESULT LOStyleSetStrokeJoinStyle(LOStyleRef style, LOStrokeJoinStyle join_type);
347
-
348
- /**
349
- @brief Gets the stroke cap style of a style.
350
- @param[in] style The style object.
351
- @param[out] cap_type The cap style.
352
- @return
353
- - \ref SU_ERROR_NONE on success
354
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
355
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if cap_type is NULL
356
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
357
- attribute
358
- */
359
- LO_RESULT LOStyleGetStrokeCapStyle(LOStyleRef style, LOStrokeCapStyle* cap_type);
360
-
361
- /**
362
- @brief Sets the stroke cap style of a style.
363
- @param[in] style The style object.
364
- @param[in] cap_type The cap style.
365
- @return
366
- - \ref SU_ERROR_NONE on success
367
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
368
- - \ref SU_ERROR_OUT_OF_RANGE if cap_type is invalid
369
- */
370
- LO_RESULT LOStyleSetStrokeCapStyle(LOStyleRef style, LOStrokeCapStyle cap_type);
371
-
372
- /**
373
- @brief Gets the stroke pattern of a style.
374
- @param[in] style The style object.
375
- @param[out] stroke_pattern The stroke pattern.
376
- @return
377
- - \ref SU_ERROR_NONE on success
378
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
379
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if stroke_pattern is NULL
380
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
381
- attribute
382
- */
383
- LO_RESULT LOStyleGetStrokePattern(LOStyleRef style, LOStrokePattern* stroke_pattern);
384
-
385
- /**
386
- @brief Sets the stroke pattern of a style.
387
- @param[in] style The style object.
388
- @param[in] stroke_pattern The stroke pattern.
389
- @return
390
- - \ref SU_ERROR_NONE on success
391
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
392
- - \ref SU_ERROR_OUT_OF_RANGE if stroke_pattern is invalid
393
- */
394
- LO_RESULT LOStyleSetStrokePattern(LOStyleRef style, LOStrokePattern stroke_pattern);
395
-
396
- /**
397
- @brief Gets the stroke pattern scale of a style.
398
- @param[in] style The style object.
399
- @param[out] pattern_scale The stroke pattern scale.
400
- @return
401
- - \ref SU_ERROR_NONE on success
402
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
403
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if pattern_scale is NULL
404
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
405
- attribute
406
- */
407
- LO_RESULT LOStyleGetStrokePatternScale(LOStyleRef style, double* pattern_scale);
408
-
409
- /**
410
- @brief Sets the stroke pattern scale of a style.
411
- @param[in] style The style object.
412
- @param[in] pattern_scale The stroke pattern scale.
413
- @return
414
- - \ref SU_ERROR_NONE on success
415
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
416
- - \ref SU_ERROR_OUT_OF_RANGE if pattern_scale is less than 0.001 or greater than
417
- 9999.0
418
- */
419
- LO_RESULT LOStyleSetStrokePatternScale(LOStyleRef style, double pattern_scale);
420
-
421
- /**
422
- @brief Gets whether or not a style has a solid color fill.
423
- @param[in] style The style object.
424
- @param[out] solid_filled Whether there is a solid color fill or not.
425
- @return
426
- - \ref SU_ERROR_NONE on success
427
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
428
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if solid_filled is NULL
429
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
430
- attribute
431
- */
432
- LO_RESULT LOStyleGetSolidFilled(LOStyleRef style, bool* solid_filled);
433
-
434
- /**
435
- @brief Sets whether or not a style has a solid color fill.
436
- @param[in] style The style object.
437
- @param[in] solid_filled Whether there should be a solid color fill or not.
438
- @return
439
- - \ref SU_ERROR_NONE on success
440
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
441
- */
442
- LO_RESULT LOStyleSetSolidFilled(LOStyleRef style, bool solid_filled);
443
-
444
- /**
445
- @brief Gets the solid fill color of a style.
446
- @param[in] style The style object.
447
- @param[out] fill_color The solid fill color.
448
- @return
449
- - \ref SU_ERROR_NONE on success
450
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
451
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if fill_color is NULL
452
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
453
- attribute
454
- */
455
- LO_RESULT LOStyleGetSolidFillColor(LOStyleRef style, SUColor* fill_color);
456
-
457
- /**
458
- @brief Sets the solid fill color of a style.
459
- @param[in] style The style object.
460
- @param[in] fill_color The solid fill color.
461
- @return
462
- - \ref SU_ERROR_NONE on success
463
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
464
- */
465
- LO_RESULT LOStyleSetSolidFillColor(LOStyleRef style, SUColor fill_color);
466
-
467
- /**
468
- @brief Gets whether there is a pattern fill or not of a style.
469
- @param[in] style The style object.
470
- @param[out] pattern_filled Whether there is a pattern fill or not.
471
- @return
472
- - \ref SU_ERROR_NONE on success
473
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
474
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if pattern_filled is NULL
475
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
476
- attribute
477
- */
478
- LO_RESULT LOStyleGetPatternFilled(LOStyleRef style, bool* pattern_filled);
479
-
480
- /**
481
- @brief Sets whether or not a style has a pattern fill.
482
- @param[in] style The style object.
483
- @param[in] pattern_filled Whether there should be a pattern fill or not.
484
- @return
485
- - \ref SU_ERROR_NONE on success
486
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
487
- */
488
- LO_RESULT LOStyleSetPatternFilled(LOStyleRef style, bool pattern_filled);
489
-
490
- /**
491
- @brief Gets the pattern fill image path of a style. This is the file path for
492
- the pattern fill image file reference.
493
- @param[in] style The style object.
494
- @param[out] image_path The pattern fill image path.
495
- @return
496
- - \ref SU_ERROR_NONE on success
497
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
498
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if image_path is NULL
499
- - \ref SU_ERROR_INVALID_OUTPUT if *image_path does not refer to a valid string
500
- object
501
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
502
- attribute
503
- */
504
- LO_RESULT LOStyleGetPatternFillImagePath(LOStyleRef style, SUStringRef* image_path);
505
-
506
- /**
507
- @brief Sets the pattern fill image path of a style. This is the file path for
508
- the pattern fill image file reference.
509
- @param[in] style The style object.
510
- @param[in] image_path The pattern fill image path.
511
- @return
512
- - \ref SU_ERROR_NONE on success
513
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
514
- - \ref SU_ERROR_NULL_POINTER_INPUT if image_path is NULL
515
- - \ref SU_ERROR_SERIALIZATION if the image file could not be loaded
516
- */
517
- LO_RESULT LOStyleSetPatternFillImagePath(LOStyleRef style, const char* image_path);
518
-
519
- /**
520
- @brief Gets the rotation angle applied to the pattern fill of a style.
521
- @param[in] style The style object.
522
- @param[out] rotation The rotation angle applied to the pattern fill, in degrees.
523
- @return
524
- - \ref SU_ERROR_NONE on success
525
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
526
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if rotation is NULL
527
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
528
- attribute
529
- */
530
- LO_RESULT LOStyleGetPatternFillRotation(LOStyleRef style, double* rotation);
531
-
532
- /**
533
- @brief Sets the rotation angle applied to the pattern fill of a style.
534
- @param[in] style The style object.
535
- @param[out] rotation The rotation angle to apply to the pattern fill, in degrees.
536
- @return
537
- - \ref SU_ERROR_NONE on success
538
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
539
- attribute
540
- */
541
- LO_RESULT LOStyleSetPatternFillRotation(LOStyleRef style, double rotation);
542
-
543
- /**
544
- @brief Gets the scale applied to the pattern fill of a style.
545
- @param[in] style The style object.
546
- @param[out] scale The scale applied to the pattern fill.
547
- @return
548
- - \ref SU_ERROR_NONE on success
549
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
550
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if scale is NULL
551
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
552
- attribute
553
- */
554
- LO_RESULT LOStyleGetPatternFillScale(LOStyleRef style, double* scale);
555
-
556
- /**
557
- @brief Sets the scale applied to the pattern fill of a style.
558
- @param[in] style The style object.
559
- @param[out] scale The scale to apply to the pattern fill.
560
- @return
561
- - \ref SU_ERROR_NONE on success
562
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
563
- attribute
564
- - \ref SU_ERROR_OUT_OF_RANGE if scale is less than 0.001 or greater than
565
- 9999.0
566
- */
567
- LO_RESULT LOStyleSetPatternFillScale(LOStyleRef style, double scale);
568
-
569
- /**
570
- @brief Gets the origin for the pattern fill of a style.
571
- @param[in] style The style object.
572
- @param[out] origin The paper space origin for the pattern fill.
573
- @return
574
- - \ref SU_ERROR_NONE on success
575
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
576
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if origin is NULL
577
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
578
- attribute
579
- */
580
- LO_RESULT LOStyleGetPatternFillOrigin(LOStyleRef style, LOPoint2D* origin);
581
-
582
- /**
583
- @brief Sets the origin for the pattern fill of a style.
584
- @param[in] style The style object.
585
- @param[out] origin The paper space origin for the pattern fill.
586
- @return
587
- - \ref SU_ERROR_NONE on success
588
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
589
- - \ref SU_ERROR_NULL_POINTER_INPUT if origin is NULL
590
- */
591
- LO_RESULT LOStyleSetPatternFillOrigin(LOStyleRef style, const LOPoint2D* origin);
592
-
593
- /**
594
- @brief Gets the text font name of a style.
595
- @param[in] style The style object.
596
- @param[out] family The name of the font.
597
- @return
598
- - \ref SU_ERROR_NONE on success
599
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
600
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if family is NULL
601
- - \ref SU_ERROR_INVALID_OUTPUT if family does not refer to a valid object
602
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
603
- attribute
604
- */
605
- LO_RESULT LOStyleGetTextFontFamily(LOStyleRef style, SUStringRef* family);
606
-
607
- /**
608
- @brief Sets the text font name of a style.
609
- @param[in] style The style object.
610
- @param[in] family The name of the new font to use.
611
- @return
612
- - \ref SU_ERROR_NONE on success
613
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
614
- - \ref SU_ERROR_NULL_POINTER_INPUT if family is NULL
615
- */
616
- LO_RESULT LOStyleSetTextFontFamily(LOStyleRef style, const char* family);
617
-
618
- /**
619
- @brief Gets whether or not text should be bold for a style.
620
- @param[in] style The style object.
621
- @param[out] is_bold Whether text will be bolded or not.
622
- @return
623
- - \ref SU_ERROR_NONE on success
624
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
625
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_bold is NULL
626
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
627
- attribute
628
- */
629
- LO_RESULT LOStyleGetTextBold(LOStyleRef style, bool* is_bold);
630
-
631
- /**
632
- @brief Sets whether or not text should be bold for a style.
633
- @param[in] style The style object.
634
- @param[out] is_bold Whether text should be bolded or not.
635
- @return
636
- - \ref SU_ERROR_NONE on success
637
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
638
- */
639
- LO_RESULT LOStyleSetTextBold(LOStyleRef style, bool is_bold);
640
-
641
- /**
642
- @brief Gets whether or not text should be italicized for a style.
643
- @param[in] style The style object.
644
- @param[out] is_italic Whether text will be italic or not.
645
- @return
646
- - \ref SU_ERROR_NONE on success
647
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
648
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_italic is NULL
649
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
650
- attribute
651
- */
652
- LO_RESULT LOStyleGetTextItalic(LOStyleRef style, bool* is_italic);
653
-
654
- /**
655
- @brief Sets whether or not text should be italicized for a style.
656
- @param[in] style The style object.
657
- @param[out] is_italic Whether text should be italic or not.
658
- @return
659
- - \ref SU_ERROR_NONE on success
660
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
661
- */
662
- LO_RESULT LOStyleSetTextItalic(LOStyleRef style, bool is_italic);
663
-
664
- /**
665
- @brief Gets the font size of a style.
666
- @param[in] style The style object.
667
- @param[out] size_in_points The font size in points.
668
- @return
669
- - \ref SU_ERROR_NONE on success
670
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
671
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if size_in_points is NULL
672
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
673
- attribute
674
- */
675
- LO_RESULT LOStyleGetFontSize(LOStyleRef style, double* size_in_points);
676
-
677
- /**
678
- @brief Sets the font size of a style. On Windows only, this font size will be
679
- truncated to an integer value.
680
- @param[in] style The style object.
681
- @param[in] size_in_points The font size in points.
682
- @return
683
- - \ref SU_ERROR_NONE on success
684
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
685
- - \ref SU_ERROR_OUT_OF_RANGE if size_in_points is less than 1.0
686
- */
687
- LO_RESULT LOStyleSetFontSize(LOStyleRef style, double size_in_points);
688
-
689
- /**
690
- @brief Gets the text color of a style.
691
- @param[in] style The style object.
692
- @param[out] color The color of the text.
693
- @return
694
- - \ref SU_ERROR_NONE on success
695
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
696
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
697
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
698
- attribute
699
- */
700
- LO_RESULT LOStyleGetTextColor(LOStyleRef style, SUColor* color);
701
-
702
- /**
703
- @brief Sets the text color of a style.
704
- @param[in] style The style object.
705
- @param[in] color The new text color to use.
706
- @return
707
- - \ref SU_ERROR_NONE on success
708
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
709
- */
710
- LO_RESULT LOStyleSetTextColor(LOStyleRef style, SUColor color);
711
-
712
- /**
713
- @brief Gets the text underline type of a style.
714
- @param[in] style The style object.
715
- @param[out] underline_type The type of underline for text.
716
- @return
717
- - \ref SU_ERROR_NONE on success
718
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
719
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if underline_type is NULL
720
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
721
- attribute
722
- */
723
- LO_RESULT LOStyleGetTextUnderline(LOStyleRef style, LOTextUnderline* underline_type);
724
-
725
- /**
726
- @brief Sets the text underline type of a style.
727
- @param[in] style The style object.
728
- @param[out] underline_type The type of underline to use for text.
729
- @return
730
- - \ref SU_ERROR_NONE on success
731
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
732
- - \ref SU_ERROR_OUT_OF_RANGE if underline_type is invalid
733
- */
734
- LO_RESULT LOStyleSetTextUnderline(LOStyleRef style, LOTextUnderline underline_type);
735
-
736
- /**
737
- @brief Gets the text strike through type for a style.
738
- @since LayOut 2026.0, API 11.0
739
- @param[in] style The style object.
740
- @param[out] strikethrough_type The type of strike through for text.
741
- @return
742
- - \ref SU_ERROR_NONE on success
743
- - \ref SU_ERROR_INVALID_INPUT if \p style does not refer to a valid object
744
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p strikethrough_type is NULL
745
- - \ref SU_ERROR_NO_DATA if \p style doesn't specify a value for this style
746
- attribute
747
- */
748
- LO_RESULT LOStyleGetTextStrikeThrough(LOStyleRef style, LOTextStrikeThrough* strikethrough_type);
749
-
750
- /**
751
- @brief Sets the text strike through type of a style.
752
- @since LayOut 2026.0, API 11.0
753
- @param[in] style The style object.
754
- @param[out] strikethrough_type The type of strike through to use for text.
755
- @return
756
- - \ref SU_ERROR_NONE on success
757
- - \ref SU_ERROR_INVALID_INPUT if \p style does not refer to a valid object
758
- - \ref SU_ERROR_OUT_OF_RANGE if \p strikethrough_type is not a valid strike through type
759
- */
760
- LO_RESULT LOStyleSetTextStrikeThrough(LOStyleRef style, LOTextStrikeThrough strikethrough_type);
761
-
762
- /**
763
- @brief Gets the text elevation type (normal, superscript, or subscript) of a
764
- style.
765
- @param[in] style The style object.
766
- @param[out] elevation_type The text elevation type.
767
- @return
768
- - \ref SU_ERROR_NONE on success
769
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
770
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if elevation_type is NULL
771
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
772
- attribute
773
- */
774
- LO_RESULT LOStyleGetTextElevation(LOStyleRef style, LOTextElevation* elevation_type);
775
-
776
- /**
777
- @brief Sets the text elevation type of a style.
778
- @param[in] style The style object.
779
- @param[in] elevation_type The new text elevation type to use.
780
- @return
781
- - \ref SU_ERROR_NONE on success
782
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
783
- - \ref SU_ERROR_OUT_OF_RANGE if elevation_type is invalid
784
- */
785
- LO_RESULT LOStyleSetTextElevation(LOStyleRef style, LOTextElevation elevation_type);
786
-
787
- /**
788
- @brief Gets the text alignment type of a style.
789
- @param[in] style The style object.
790
- @param[out] alignment_type The alignment type for text.
791
- @return
792
- - \ref SU_ERROR_NONE on success
793
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
794
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if alignment_type is NULL
795
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
796
- attribute
797
- */
798
- LO_RESULT LOStyleGetTextAlignment(LOStyleRef style, LOTextAlignment* alignment_type);
799
-
800
- /**
801
- @brief Sets the text alignment type of a style.
802
- @param[in] style The style object.
803
- @param[in] alignment_type The new text alignment type to use.
804
- @return
805
- - \ref SU_ERROR_NONE on success
806
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
807
- - \ref SU_ERROR_OUT_OF_RANGE if alignment_type is invalid
808
- */
809
- LO_RESULT LOStyleSetTextAlignment(LOStyleRef style, LOTextAlignment alignment_type);
810
-
811
- /**
812
- @brief Gets the text alignment type of a style.
813
- @param[in] style The style object.
814
- @param[out] anchor_type The anchor type for text.
815
- @return
816
- - \ref SU_ERROR_NONE on success
817
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
818
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if anchor_type is NULL
819
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
820
- attribute
821
- */
822
- LO_RESULT LOStyleGetTextAnchor(LOStyleRef style, LOTextAnchor* anchor_type);
823
-
824
- /**
825
- @brief Sets the text alignment type of a style.
826
- @param[in] style The style object.
827
- @param[in] anchor_type The new text anchor type to use.
828
- @return
829
- - \ref SU_ERROR_NONE on success
830
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
831
- - \ref SU_ERROR_OUT_OF_RANGE if anchor_type is invalid
832
- */
833
- LO_RESULT LOStyleSetTextAnchor(LOStyleRef style, LOTextAnchor anchor_type);
834
-
835
- /**
836
- @brief Gets the dimension rotation alignment type of a style.
837
- @param[in] style The style object.
838
- @param[out] alignment The alignment.
839
- @return
840
- - \ref SU_ERROR_NONE on success
841
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
842
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if alignment is NULL
843
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
844
- attribute
845
- */
846
- LO_RESULT LOStyleGetDimensionRotationAlignment(
847
- LOStyleRef style, LODimensionRotationAlignment* alignment);
848
-
849
- /**
850
- @brief Sets the dimension rotation alignment type of a style.
851
- @param[in] style The style object.
852
- @param[in] alignment The new alignment to use.
853
- @return
854
- - \ref SU_ERROR_NONE on success
855
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
856
- - \ref SU_ERROR_OUT_OF_RANGE if alignment is not a valid value
857
- */
858
- LO_RESULT LOStyleSetDimensionRotationAlignment(
859
- LOStyleRef style, LODimensionRotationAlignment alignment);
860
-
861
- /**
862
- @brief Gets the dimension vertical alignment setting of a style.
863
- @param[in] style The style object.
864
- @param[out] alignment The alignment.
865
- @return
866
- - \ref SU_ERROR_NONE on success
867
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
868
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if alignment is NULL
869
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
870
- attribute
871
- */
872
- LO_RESULT LOStyleGetDimensionVerticalAlignment(
873
- LOStyleRef style, LODimensionVerticalAlignment* alignment);
874
-
875
- /**
876
- @brief Sets the dimension vertical alignment setting of a style. You can not
877
- set the alignment to \ref LODimensionVerticalAlignment_Offset because it
878
- requires a relative vector for the position.
879
- @param[in] style The style object.
880
- @param[in] alignment The new alignment to use.
881
- @return
882
- - \ref SU_ERROR_NONE on success
883
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
884
- - \ref SU_ERROR_OUT_OF_RANGE if alignment is not a valid value
885
- */
886
- LO_RESULT LOStyleSetDimensionVerticalAlignment(
887
- LOStyleRef style, LODimensionVerticalAlignment alignment);
888
-
889
- /**
890
- @brief Gets the dimension units and precision of a style.
891
- @param[in] style The style object.
892
- @param[out] units The units setting.
893
- @param[out] precision The units precision. This is expressed as a value in the
894
- current units.
895
- @return
896
- - \ref SU_ERROR_NONE on success
897
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
898
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if units is NULL
899
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if precision is NULL
900
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
901
- attribute
902
- */
903
- LO_RESULT LOStyleGetDimensionUnits(LOStyleRef style, LODimensionUnits* units, double* precision);
904
-
905
- /**
906
- @brief Sets the dimension units and precision of a style.
907
- @param[in] style The style object.
908
- @param[out] units The units setting for the document.
909
- @param[out] precision The units precision. This is expressed as a value in the
910
- specified units. LayOut only allows for a finite set of
911
- precision values for each units setting, so it will set
912
- the precision to the closest valid setting for the
913
- specified units. See the "Dimension Inspector" for a
914
- reference of the available precisions for each units
915
- setting.
916
- @return
917
- - \ref SU_ERROR_NONE on success
918
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
919
- - \ref SU_ERROR_OUT_OF_RANGE if units is invalid
920
- */
921
- LO_RESULT LOStyleSetDimensionUnits(LOStyleRef style, LODimensionUnits units, double precision);
922
-
923
- /**
924
- @brief Gets the dimension shall sppress unit display attribute of a style.
925
- @param[in] style The style object.
926
- @param[out] is_suppressed Is the dimension suppressing unit display.
927
- @return
928
- - \ref SU_ERROR_NONE on success
929
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
930
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_suppressed is NULL
931
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
932
- attribute
933
- */
934
- LO_RESULT LOStyleGetSuppressDimensionUnits(LOStyleRef style, bool* is_suppressed);
935
-
936
- /**
937
- @brief Sets the dimension shall sppress unit display attribute of a style.
938
- @param[in] style The style object.
939
- @param[in] is_suppressed Is the dimension suppressing unit display.
940
- @return
941
- - \ref SU_ERROR_NONE on success
942
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
943
- */
944
- LO_RESULT LOStyleSetSuppressDimensionUnits(LOStyleRef style, bool is_suppressed);
945
-
946
-
947
-
948
-
949
-
950
- /**
951
- @brief Gets the maximum number of widths that may be returned by
952
- LOStrokePatternGetWidths. Use this to determine the size of the array to
953
- pass to LOStrokePatternGetWidths.
954
- @param[out] num_widths The maximum number of widths.
955
- @return
956
- - \ref SU_ERROR_NONE on success
957
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if num_widths is NULL
958
- */
959
- LO_RESULT LOStrokePatternGetMaximumNumberOfWidths(size_t* num_widths);
960
-
961
- /**
962
- @brief Gets the widths of the alternating dashes and gaps for the given stroke
963
- pattern. These widths are expressed in paper space inches, and may be
964
- scaled (see \ref LOStyleGetStrokePatternScale). Use \ref
965
- LOStrokePatternGetMaximumNumberOfWidths to determine an adequate length
966
- for the widths array.
967
- @param[in] stroke_pattern The stroke pattern.
968
- @param[in] len The maximum number of widths to return.
969
- @param[out] widths The widths for the stroke pattern.
970
- @param[out] num_widths The number of widths returned.
971
-
972
- @return
973
- - \ref SU_ERROR_NONE on success
974
- - \ref SU_ERROR_OUT_OF_RANGE if stroke_pattern is invalid
975
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if widths is NULL
976
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if num_widths is NULL
977
- */
978
- LO_RESULT LOStrokePatternGetWidths(
979
- LOStrokePattern stroke_pattern, size_t len, double widths[], size_t* num_widths);
980
-
981
- /**
982
- @brief Gets the the start arrow type of a style.
983
- @param[in] style The style object.
984
- @param[out] type The arrow type.
985
- @return
986
- - \ref SU_ERROR_NONE on success
987
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
988
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if type is NULL
989
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
990
- */
991
- LO_RESULT LOStyleGetStartArrowType(LOStyleRef style, LOArrowType* type);
992
-
993
- /**
994
- @brief Sets the the start arrow type of a style.
995
- @param[in] style The style object.
996
- @param[in] type The arrow type.
997
- @return
998
- - \ref SU_ERROR_NONE on success
999
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1000
- - \ref SU_ERROR_OUT_OF_RANGE if type is invalid
1001
- */
1002
- LO_RESULT LOStyleSetStartArrowType(LOStyleRef style, LOArrowType type);
1003
-
1004
- /**
1005
- @brief Gets the the start arrow size of a style.
1006
- @param[in] style The style object.
1007
- @param[out] size The arrow size.
1008
- @return
1009
- - \ref SU_ERROR_NONE on success
1010
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1011
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if size is NULL
1012
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
1013
- */
1014
- LO_RESULT LOStyleGetStartArrowSize(LOStyleRef style, double* size);
1015
-
1016
- /**
1017
- @brief Sets the the start arrow size of a style.
1018
- @param[in] style The style object.
1019
- @param[in] size The arrow size.
1020
- @return
1021
- - \ref SU_ERROR_NONE on success
1022
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1023
- - \ref SU_ERROR_OUT_OF_RANGE if size is less than 0.25
1024
- */
1025
- LO_RESULT LOStyleSetStartArrowSize(LOStyleRef style, double size);
1026
-
1027
- /**
1028
- @brief Gets the end arrow type of a style.
1029
- @param[in] style The style object.
1030
- @param[out] type The arrow type.
1031
- @return
1032
- - \ref SU_ERROR_NONE on success
1033
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1034
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if type is NULL
1035
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
1036
- */
1037
- LO_RESULT LOStyleGetEndArrowType(LOStyleRef style, LOArrowType* type);
1038
-
1039
- /**
1040
- @brief Sets the end arrow type of a style.
1041
- @param[in] style The style object.
1042
- @param[in] type The arrow type.
1043
- @return
1044
- - \ref SU_ERROR_NONE on success
1045
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1046
- - \ref SU_ERROR_OUT_OF_RANGE if type is invalid
1047
- */
1048
- LO_RESULT LOStyleSetEndArrowType(LOStyleRef style, LOArrowType type);
1049
-
1050
- /**
1051
- @brief Gets the end arrow size of a style.
1052
- @param[in] style The style object.
1053
- @param[out] size The arrow size.
1054
- @return
1055
- - \ref SU_ERROR_NONE on success
1056
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1057
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if size is NULL
1058
- - \ref SU_ERROR_NO_DATA if style doesn't specify a value for this style
1059
- */
1060
- LO_RESULT LOStyleGetEndArrowSize(LOStyleRef style, double* size);
1061
-
1062
- /**
1063
- @brief Sets the end arrow size of a style.
1064
- @param[in] style The style object.
1065
- @param[in] size The arrow size.
1066
- @return
1067
- - \ref SU_ERROR_NONE on success
1068
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1069
- - \ref SU_ERROR_OUT_OF_RANGE if size is less than 0.25
1070
- */
1071
- LO_RESULT LOStyleSetEndArrowSize(LOStyleRef style, double size);
1072
-
1073
- /**
1074
- @brief Gets whether or not an arrow type is filled in.
1075
- @param[in] type The arrow type.
1076
- @param[out] filled Whether the arrow type is filled in or not.
1077
- @return
1078
- - \ref SU_ERROR_NONE on success
1079
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if filled is NULL
1080
- - \ref SU_ERROR_OUT_OF_RANGE if type is invalid
1081
- */
1082
- LO_RESULT LOStyleIsArrowTypeFilled(LOArrowType type, bool* filled);
1083
-
1084
- /**
1085
- @brief Adds a style to apply to an entity's sub-entity. This would be used to
1086
- set the arrow head type for extension lines of a dimension, for example.
1087
- @param[in] style The style to contain the sub entity style.
1088
- @param[in] type The type of sub entity the sub style is for.
1089
- @param[in] sub_style The style to set as a sub entity style.
1090
- @return
1091
- - \ref SU_ERROR_NONE on success
1092
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1093
- - \ref SU_ERROR_INVALID_INPUT if sub_style does not refer to a valid object
1094
- - \ref SU_ERROR_OUT_OF_RANGE if type is invalid
1095
- */
1096
- LO_RESULT LOStyleSetSubEntityStyle(LOStyleRef style, LOSubEntityType type, LOStyleRef sub_style);
1097
-
1098
- /**
1099
- @brief Gets the style settings for a sub entity from a style. This would be used
1100
- to get the current style of a dimension's text, for example.
1101
- @param[in] style The style containing the sub entity style.
1102
- @param[in] type The type of sub entity the sub style is for.
1103
- @param[in] sub_style The sub entity style.
1104
- @return
1105
- - \ref SU_ERROR_NONE on success
1106
- - \ref SU_ERROR_INVALID_INPUT if style does not refer to a valid object
1107
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if sub_style is NULL
1108
- - \ref SU_ERROR_INVALID_OUTPUT if sub_style does not refer to a valid object
1109
- - \ref SU_ERROR_OUT_OF_RANGE if type is invalid
1110
- */
1111
- LO_RESULT LOStyleGetSubEntityStyle(LOStyleRef style, LOSubEntityType type, LOStyleRef* sub_style);
1112
-
1113
- #ifdef __cplusplus
1114
- } // end extern "C"
1115
- #endif // __cplusplus
1116
- #endif // LAYOUT_MODEL_STYLE_H_