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,109 +0,0 @@
1
- // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
- // This file is intended for public distribution.
3
-
4
- #ifndef LAYOUT_MODEL_IMAGEREP_H_
5
- #define LAYOUT_MODEL_IMAGEREP_H_
6
-
7
- #include <LayOutAPI/common.h>
8
- #include <LayOutAPI/model/defs.h>
9
- #include <SketchUpAPI/color.h>
10
-
11
- /**
12
- @enum LOImageRepOutputFormat
13
- @brief Represents the file formats that an image representation can be saved as
14
- when saving to a file.
15
- */
16
- typedef enum {
17
- LOImageRepOutputFormat_PNG = 0, ///< PNG file format.
18
- LOImageRepOutputFormat_JPG, ///< JPG file format.
19
- LONumImageRepOutputFormats
20
- } LOImageRepOutputFormat;
21
-
22
- /**
23
- @struct LOImageRepRef
24
- @brief References the bitmap representation for a raster image.
25
- */
26
-
27
- #ifdef __cplusplus
28
- extern "C" {
29
- #endif // __cplusplus
30
-
31
- /**
32
- @brief Gets the dimensions in pixels of an image representation.
33
- @param[in] imagerep The image representation object.
34
- @param[out] width The width of the image.
35
- @param[out] height The height of the image.
36
- @return
37
- - \ref SU_ERROR_NONE on success
38
- - \ref SU_ERROR_INVALID_INPUT if imagerep does not refer to a valid object
39
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if width is NULL
40
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if height is NULL
41
- */
42
- LO_RESULT LOImageRepGetPixelDimensions(LOImageRepRef imagerep, size_t* width, size_t* height);
43
-
44
- /**
45
- @brief Gets the DPI of an image representation.
46
- @since LayOut 2018, API 3.0
47
- @param[in] imagerep The image representation object.
48
- @param[out] x_dpi The DPI in horizontal direction.
49
- @param[out] y_dpi The DPI in vertical direction.
50
- @return
51
- - \ref SU_ERROR_NONE on success
52
- - \ref SU_ERROR_INVALID_INPUT if imagerep does not refer to a valid object
53
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if x_dpi is NULL
54
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if y_dpi is NULL
55
- */
56
- LO_RESULT LOImageRepGetDPI(LOImageRepRef imagerep, double* x_dpi, double* y_dpi);
57
-
58
- /**
59
- @brief Returns the total size and bits-per-pixel value of an image
60
- representation. This function is useful to determine the size of the
61
- buffer necessary to be passed into \ref LOImageRepGetData. The returned
62
- data can be used along with the returned bits-per-pixel value and the
63
- image dimensions to compute RGBA values at individual pixels of the
64
- image.
65
- @param[in] imagerep The image representation object.
66
- @param[out] data_size The total size of the image data in bytes.
67
- @param[out] bits_per_pixel The number of bits per pixel of the image data.
68
- @return
69
- - \ref SU_ERROR_NONE on success
70
- - \ref SU_ERROR_INVALID_INPUT if imagerep is an invalid object
71
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if data_size or bits_per_pixel is NULL
72
- */
73
- LO_RESULT LOImageRepGetDataSize(LOImageRepRef imagerep, size_t* data_size, size_t* bits_per_pixel);
74
-
75
- /**
76
- @brief Returns the pixel data for an image representation. The given array
77
- must be large enough to hold the image representation's data. This size
78
- can be obtained by calling \ref LOImageRepGetDataSize.
79
- @param[in] imagerep The image representation object.
80
- @param[in] data_size The size of the byte array.
81
- @param[out] pixel_data The image data retrieved.
82
- @return
83
- - \ref SU_ERROR_NONE on success
84
- - \ref SU_ERROR_INVALID_INPUT if imagerep is an invalid object
85
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if pixel_data is NULL
86
- - \ref SU_ERROR_INSUFFICIENT_SIZE if data_size is insufficient for the image
87
- data
88
- */
89
- LO_RESULT LOImageRepGetData(LOImageRepRef imagerep, size_t data_size, SUByte pixel_data[]);
90
-
91
- /**
92
- @brief Saves the image representation to the file at the indicated path.
93
- @param[in] imagerep The image representation object.
94
- @param[in] filename The file path to where the image should go on disk.
95
- @param[in] format What format to save the image as.
96
- @return
97
- - \ref SU_ERROR_NONE on success
98
- - \ref SU_ERROR_INVALID_INPUT if imagerep is invalid
99
- - \ref SU_ERROR_NULL_POINTER_INPUT if filename is NULL
100
- - \ref SU_ERROR_SERIALIZATION if there was an error writing the image file
101
- */
102
- LO_RESULT LOImageRepSaveAs(
103
- LOImageRepRef imagerep, const char* filename, LOImageRepOutputFormat format);
104
-
105
- #ifdef __cplusplus
106
- } // end extern "C"
107
- #endif // __cplusplus
108
-
109
- #endif // LAYOUT_MODEL_IMAGEREP_H_
@@ -1,332 +0,0 @@
1
- // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
- // This file is intended for public distribution.
3
-
4
- #ifndef LAYOUT_MODEL_LABEL_H_
5
- #define LAYOUT_MODEL_LABEL_H_
6
-
7
- #include <LayOutAPI/common.h>
8
- #include <LayOutAPI/geometry/geometry.h>
9
- #include <LayOutAPI/model/defs.h>
10
- #include <LayOutAPI/model/formattedtext.h>
11
-
12
- /**
13
- @struct LOLabelRef
14
- @brief References a label entity. A label consists of the label text (formatted
15
- text entity) and the label leader (path entity). A label may be
16
- connected to another entity via a \ref LOConnectionPointRef object.
17
- */
18
-
19
- #ifdef __cplusplus
20
- extern "C" {
21
- #endif // __cplusplus
22
-
23
- /**
24
- @enum LOLabelLeaderLineType
25
- @brief Defines the different types of leader lines for a label entity.
26
- */
27
- typedef enum {
28
- LOLabelLeaderLineType_SingleSegment = 0, ///< Single segment leader line.
29
- LOLabelLeaderLineType_TwoSegment, ///< Two segment leader line.
30
- LOLabelLeaderLineType_Bezier, ///< Curved Bezier leader line.
31
- LOLabelLeaderLineType_Unknown, ///< Custom leader line.
32
- LONumLabelLeaderLineTypes
33
- } LOLabelLeaderLineType;
34
-
35
- /**
36
- @enum LOLabelTextConnectionType
37
- @brief Defines the different types of label text connections for a label entity.
38
- */
39
- typedef enum {
40
- LOLabelTextConnectionType_NoConnection = 0, ///< Label text behaves disconnected.
41
- LOLabelTextConnectionType_Automatic, ///< Automatically choses one of the other types based on
42
- ///< current label geometry.
43
- LOLabelTextConnectionType_ReverseAutomatic, ///< Automatically choose the OPPOSITE of the type
44
- ///< indicated by
45
- ///< LOLabelTextConnectionType_Automatic.
46
- LOLabelTextConnectionType_TopLeft, ///< Top-left corner of text.
47
- LOLabelTextConnectionType_CenterLeft, ///< Vertical center of left side of text.
48
- LOLabelTextConnectionType_BottomLeft, ///< Bottom-left corner of text.
49
- LOLabelTextConnectionType_TopRight, ///< Top-right corner of text.
50
- LOLabelTextConnectionType_CenterRight, ///< Vertical center of right side of text.
51
- LOLabelTextConnectionType_BottomRight, ///< Bottom-right corner of text.
52
- LONumLabelTextConnectionTypes
53
- } LOLabelTextConnectionType;
54
-
55
- /**
56
- @brief Creates a new disconnected label object whose text is unbounded.
57
- @param[out] label The label object.
58
- @param[in] anchor_point The anchor point for the label text's position.
59
- @param[in] anchor_type Defines which point of the label text is set by
60
- anchor_point.
61
- @param[in] plain_text The plain text to use for the label text.
62
- @param[in] leader_line_type The type of leader line this label will have.
63
- @param[in] target_point Where the label leader should point to.
64
- @return
65
- - \ref SU_ERROR_NONE on success
66
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if label is NULL
67
- - \ref SU_ERROR_OVERWRITE_VALID if *label already refers to a valid object
68
- - \ref SU_ERROR_NULL_POINTER_INPUT if anchor_point is NULL
69
- - \ref SU_ERROR_NULL_POINTER_INPUT if plain_text is NULL
70
- - \ref SU_ERROR_NULL_POINTER_INPUT if target_point is NULL
71
- - \ref SU_ERROR_OUT_OF_RANGE if anchor_type is not a valid value
72
- - \ref SU_ERROR_OUT_OF_RANGE if leader_line_type is not a valid value
73
- - \ref SU_ERROR_GENERIC if plain_text is an empty string
74
- */
75
- LO_RESULT LOLabelCreateAtPoint(
76
- LOLabelRef* label, const LOPoint2D* anchor_point, LOFormattedTextAnchorType anchor_type,
77
- const char* plain_text, LOLabelLeaderLineType leader_line_type, const LOPoint2D* target_point);
78
-
79
- /**
80
- @brief Creates a new disconnected label object whose text is bounded.
81
- @param[out] label The label object.
82
- @param[in] bounds The label text bounds.
83
- @param[in] plain_text The plain text to use as the label text.
84
- @param[in] leader_line_type The type of leader line this label will have.
85
- @param[in] target_point Where the label leader should point to.
86
- @return
87
- - \ref SU_ERROR_NONE on success
88
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if label is NULL
89
- - \ref SU_ERROR_OVERWRITE_VALID if *label already refers to a valid object
90
- - \ref SU_ERROR_NULL_POINTER_INPUT if bounds is NULL
91
- - \ref SU_ERROR_NULL_POINTER_INPUT if plain_text is NULL
92
- - \ref SU_ERROR_NULL_POINTER_INPUT if target_point is NULL
93
- - \ref SU_ERROR_GENERIC if plain_text is an empty string
94
- - \ref SU_ERROR_OUT_OF_RANGE if bounds is zero sized
95
- - \ref SU_ERROR_OUT_OF_RANGE if leader_line_type is not a valid value
96
- */
97
- LO_RESULT LOLabelCreateWithBounds(
98
- LOLabelRef* label, const LOAxisAlignedRect2D* bounds, const char* plain_text,
99
- LOLabelLeaderLineType leader_line_type, const LOPoint2D* target_point);
100
-
101
- /**
102
- @brief Adds a reference to a label object.
103
- @param[in] label The label object.
104
- @return
105
- - \ref SU_ERROR_NONE on success
106
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
107
- */
108
- LO_RESULT LOLabelAddReference(LOLabelRef label);
109
-
110
- /**
111
- @brief Releases a label object. The object will be invalidated if
112
- releasing the last reference.
113
- @param[in] label The label object.
114
- @return
115
- - \ref SU_ERROR_NONE on success
116
- - \ref SU_ERROR_NULL_POINTER_INPUT if label is NULL
117
- - \ref SU_ERROR_INVALID_INPUT if *label does not refer to a valid object
118
- */
119
- LO_RESULT LOLabelRelease(LOLabelRef* label);
120
-
121
- /**
122
- @brief Converts from a \ref LOEntityRef to a \ref LOLabelRef.
123
- This is essentially a downcast operation so the given \ref LOEntityRef
124
- must be convertible to a \ref LOLabelRef.
125
- @param[in] entity The entity object.
126
- @return
127
- - The converted \ref LOLabelRef if the downcast operation succeeds
128
- - If not, the returned reference will be invalid
129
- */
130
- LO_EXPORT LOLabelRef LOLabelFromEntity(LOEntityRef entity);
131
-
132
- /**
133
- @brief Converts from a \ref LOLabelRef to a \ref LOEntityRef.
134
- This is essentially an upcast operation.
135
- @param[in] label The label object.
136
- @return
137
- - The converted \ref LOEntityRef if label is a valid object
138
- - If not, the returned reference will be invalid
139
- */
140
- LO_EXPORT LOEntityRef LOLabelToEntity(LOLabelRef label);
141
-
142
- /**
143
- @brief Creates the entities that represent the label in its exploded form and
144
- adds them to a \ref LOEntityListRef. It is NOT necessary to explicitly
145
- release these entities, since \ref LOEntityListRef itself adds a
146
- reference to the entities and will release them when they are removed
147
- from the list or when the list is released.
148
- @param[in] label The label object.
149
- @param[in] entity_list The entity list object to add the new entities to.
150
- @param[in] page_for_autotext The page that is currently being imported, exported,
151
- or displayed. This must be a valid object if
152
- auto-text tags should be substituted with their
153
- display representations in the text that is
154
- returned. Otherwise, this object may be invalid.
155
- @return
156
- - \ref SU_ERROR_NONE on success
157
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
158
- - \ref SU_ERROR_INVALID_INPUT if entity_list does not refer to a valid object
159
- - \ref SU_ERROR_GENERIC if page_for_autotext is a valid object and does not
160
- belong to the same document as label.
161
- */
162
- LO_RESULT LOLabelGetExplodedEntities(
163
- LOLabelRef label, LOEntityListRef entity_list, LOPageRef page_for_autotext);
164
-
165
- /**
166
- @brief Connects the label to the given connection point. The leader line will
167
- be adjusted to point at the connection point. The label must be in the
168
- same document as the connection point. If both the label and the
169
- connection point's entity are on non-shared layers, they must be on the
170
- same page.
171
- @param[in] label The label object.
172
- @param[in] connection_point The connection point object.
173
- @return
174
- - \ref SU_ERROR_NONE on success
175
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
176
- - \ref SU_ERROR_INVALID_INPUT if connection_point does not refer to a valid
177
- object
178
- - \ref SU_ERROR_LAYER_LOCKED if label is on a locked layer
179
- - \ref SU_ERROR_ENTITY_LOCKED if label is locked
180
- - \ref SU_ERROR_GENERIC if the label was unable to connect to the connection
181
- point
182
- */
183
- LO_RESULT LOLabelConnectTo(LOLabelRef label, LOConnectionPointRef connection_point);
184
-
185
- /**
186
- @brief Disconnects the label from its connection point. The leader line will
187
- not be adjusted by disconnecting from a connection point.
188
- @param[in] label The label object.
189
- @return
190
- - \ref SU_ERROR_NONE on success
191
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
192
- - \ref SU_ERROR_LAYER_LOCKED if label is on a locked layer
193
- - \ref SU_ERROR_ENTITY_LOCKED if label is locked
194
- */
195
- LO_RESULT LOLabelDisconnect(LOLabelRef label);
196
-
197
- /**
198
- @brief Creates a copy of the label text's \ref LOFormattedTextRef object.
199
- @param[in] label The label object.
200
- @param[out] text A copy of the formatted text object representing the label
201
- text.
202
- @return
203
- - \ref SU_ERROR_NONE on success
204
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
205
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if text is NULL
206
- - \ref SU_ERROR_OVERWRITE_VALID if *text already refers to a valid object
207
- */
208
- LO_RESULT LOLabelCreateLabelTextCopy(LOLabelRef label, LOFormattedTextRef* text);
209
-
210
- /**
211
- @brief Creates a copy of the label text's \ref LOFormattedTextRef object. This
212
- copy will have all auto-text tags substituted with the display text. A
213
- valid page object must be provided for page name/number auto-text to
214
- be correctly substituted.
215
- @param[in] label The label object.
216
- @param[in] page The page object.
217
- @param[out] text A copy of the formatted text object representing the label
218
- display text.
219
- @return
220
- - \ref SU_ERROR_NONE on success
221
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
222
- - \ref SU_ERROR_GENERIC if page and label don't belong to the same document
223
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if text is NULL
224
- - \ref SU_ERROR_OVERWRITE_VALID if *text already refers to a valid object
225
- */
226
- LO_RESULT LOLabelCreateLabelDisplayTextCopy(
227
- LOLabelRef label, LOPageRef page, LOFormattedTextRef* text);
228
-
229
- /**
230
- @brief Sets the text of a label from a \ref LOFormattedTextRef object. The
231
- leader line will be adjusted to connect to the new label text if its
232
- bounds are different.
233
- @param[in] label The label object.
234
- @param[in] text The formatted text object representing the label text.
235
- @return
236
- - \ref SU_ERROR_NONE on success
237
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
238
- - \ref SU_ERROR_LAYER_LOCKED if label is on a locked layer
239
- - \ref SU_ERROR_ENTITY_LOCKED if label is locked
240
- - \ref SU_ERROR_INVALID_INPUT if text does not refer to a valid object
241
- */
242
- LO_RESULT LOLabelSetLabelText(LOLabelRef label, LOFormattedTextRef text);
243
-
244
- /**
245
- @brief Creates a copy of the label leader's \ref LOPathRef object.
246
- @param[in] label The label object.
247
- @param[out] path A copy of the path object representing the label leader.
248
- @return
249
- - \ref SU_ERROR_NONE on success
250
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
251
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if path is NULL
252
- - \ref SU_ERROR_OVERWRITE_VALID if *path already refers to a valid object
253
- */
254
- LO_RESULT LOLabelCreateLeaderLineCopy(LOLabelRef label, LOPathRef* path);
255
-
256
- /**
257
- @brief Sets the leader line of a label from a \ref LOPathRef object. The label
258
- text position will change to remain connected to the end point of the
259
- leader line. The leader line type may change based on number and types
260
- of points in the path.
261
- @param[in] label The label object.
262
- @param[in] path The path object representing the label leader.
263
- @return
264
- - \ref SU_ERROR_NONE on success
265
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
266
- - \ref SU_ERROR_INVALID_INPUT if path does not refer to a valid object
267
- - \ref SU_ERROR_GENERIC if path contains less than two points
268
- - \ref SU_ERROR_LAYER_LOCKED if label is on a locked layer
269
- - \ref SU_ERROR_ENTITY_LOCKED if label is locked
270
- */
271
- LO_RESULT LOLabelSetLeaderLine(LOLabelRef label, LOPathRef path);
272
-
273
- /**
274
- @brief Gets the type of leader line the label is using. If the leader line has
275
- been customized, the type may be unknown.
276
- @param[in] label The label object.
277
- @param[out] leader_line_type The leader line type.
278
- @return
279
- - \ref SU_ERROR_NONE on success
280
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
281
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if leader_line_type is NULL
282
- */
283
- LO_RESULT LOLabelGetLeaderLineType(LOLabelRef label, LOLabelLeaderLineType* leader_line_type);
284
-
285
- /**
286
- @brief Sets the type of leader line the label is using. New control points will
287
- be generated if changing to a two segment or bezier leader line type.
288
- @param[in] label The label object.
289
- @param[in] leader_line_type The leader line type.
290
- @return
291
- - \ref SU_ERROR_NONE on success
292
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
293
- - \ref SU_ERROR_OUT_OF_RANGE if leader_line_type is
294
- LOLabelLeaderLineType_Unknown or not a valid leader line type
295
- - \ref SU_ERROR_LAYER_LOCKED if label is on a locked layer
296
- - \ref SU_ERROR_ENTITY_LOCKED if label is locked
297
- */
298
- LO_RESULT LOLabelSetLeaderLineType(LOLabelRef label, LOLabelLeaderLineType leader_line_type);
299
-
300
- /**
301
- @brief Gets the type of connection between the label text and leader line.
302
- @param[in] label The label object.
303
- @param[out] text_connection_type The text connection type.
304
- @return
305
- - \ref SU_ERROR_NONE on success
306
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
307
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if text_connection_type is NULL
308
- */
309
- LO_RESULT LOLabelGetTextConnectionType(
310
- LOLabelRef label, LOLabelTextConnectionType* text_connection_type);
311
-
312
- /**
313
- @brief Sets the type of connection between the label text and leader line. The
314
- text position will change to account for a change in text connection
315
- type.
316
- @param[in] label The label object.
317
- @param[in] text_connection_type The text connection type.
318
- @return
319
- - \ref SU_ERROR_NONE on success
320
- - \ref SU_ERROR_INVALID_INPUT if label does not refer to a valid object
321
- - \ref SU_ERROR_LAYER_LOCKED if label is on a locked layer
322
- - \ref SU_ERROR_ENTITY_LOCKED
323
- - \ref SU_ERROR_OUT_OF_RANGE if text_connection_type is not a valid value
324
- */
325
- LO_RESULT LOLabelSetTextConnectionType(
326
- LOLabelRef label, LOLabelTextConnectionType text_connection_type);
327
-
328
- #ifdef __cplusplus
329
- }
330
- #endif // __cplusplus
331
-
332
- #endif // LAYOUT_MODEL_LABEL_H_
@@ -1,207 +0,0 @@
1
- // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
- // This file is intended for public distribution.
3
-
4
- #ifndef LAYOUT_MODEL_LAYER_H_
5
- #define LAYOUT_MODEL_LAYER_H_
6
-
7
- #include <LayOutAPI/common.h>
8
- #include <LayOutAPI/model/defs.h>
9
-
10
- /**
11
- @struct LOLayerRef
12
- @brief References a layer definition. A layer definition specifies the
13
- document-wide information about a layer. To access the entities on a
14
- layer for a given page, use \ref LOLayerInstanceRef.
15
- */
16
-
17
- /**
18
- @enum LOShareLayerAction
19
- @brief Defines the different ways to manage entities when sharing a layer.
20
- */
21
- typedef enum {
22
- LOShareLayerAction_Clear, ///< Delete all entities on the layer
23
- LOShareLayerAction_KeepOnePage, ///< Keep the entities on the specified page
24
- LOShareLayerAction_MergeAllPages, ///< Merge the entities from all pages
25
-
26
- LONumShareLayerActions
27
- } LOShareLayerAction;
28
-
29
- /**
30
- @enum LOUnshareLayerAction
31
- @brief Defines the different ways to manage entities when making a layer
32
- non-shared.
33
- */
34
- typedef enum {
35
- LOUnshareLayerAction_Clear, ///< Delete all entities on the layer
36
- LOUnshareLayerAction_CopyToOnePage, ///< Copy entities to the specified page
37
- LOUnshareLayerAction_CopyToAllPages, ///< Copy entities to all pages
38
-
39
- LONumUnshareLayerActions
40
- } LOUnshareLayerAction;
41
-
42
- #ifdef __cplusplus
43
- extern "C" {
44
- #endif // __cplusplus
45
-
46
- /**
47
- @brief Gets the name of a layer.
48
- @param[in] layer_definition The layer definition object.
49
- @param[out] name The name of the layer.
50
- @return
51
- - \ref SU_ERROR_NONE on success
52
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
53
- object
54
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
55
- - \ref SU_ERROR_INVALID_OUTPUT if name does not refer to a valid object
56
- */
57
- LO_RESULT LOLayerGetName(LOLayerRef layer_definition, SUStringRef* name);
58
-
59
- /**
60
- @brief Sets the name of a layer.
61
- @param[in] layer_definition The layer definition object.
62
- @param[in] name The new name for the layer.
63
- @return
64
- - \ref SU_ERROR_NONE on success
65
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
66
- object
67
- - \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
68
- - \ref SU_ERROR_UNSUPPORTED if name is an empty string
69
- */
70
- LO_RESULT LOLayerSetName(LOLayerRef layer_definition, const char* name);
71
-
72
- /**
73
- @brief Gets whether or not a layer is locked.
74
- @param[in] layer_definition The layer definition object.
75
- @param[out] is_locked Whether the layer is locked or not.
76
- @return
77
- - \ref SU_ERROR_NONE on success
78
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
79
- object
80
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_locked is NULL
81
- */
82
- LO_RESULT LOLayerGetLocked(LOLayerRef layer_definition, bool* is_locked);
83
-
84
- /**
85
- @brief Sets whether or not a layer is locked. When setting a layer to locked,
86
- there must be at least one other unlocked and visible layer on every
87
- page. If this is not the case, then the next layer will be automatically
88
- unlocked and made visible on all pages as necessary to proceed with the
89
- operation.
90
- @param[in] layer_definition The layer definition object.
91
- @param[in] is_locked Whether the layer should be locked or not.
92
- @return
93
- - \ref SU_ERROR_NONE on success
94
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
95
- object
96
- - \ref SU_ERROR_GENERIC if the layer could not be locked because it would
97
- break the rule that there must be at least one unlocked, visible layer on
98
- each page
99
- */
100
- LO_RESULT LOLayerSetLocked(LOLayerRef layer_definition, bool is_locked);
101
-
102
- /**
103
- @brief Gets whether or not a layer is a shared layer.
104
- @param[in] layer_definition The layer definition object.
105
- @param[in] is_shared Whether the layer is shared or not.
106
- @return
107
- - \ref SU_ERROR_NONE on success
108
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
109
- object
110
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_shared is NULL
111
- */
112
- LO_RESULT LOLayerGetShared(LOLayerRef layer_definition, bool* is_shared);
113
-
114
- /**
115
- @brief Shares a layer. If action is \ref LOShareLayerAction_Clear or
116
- \ref LOShareLayerAction_MergeAllPages, then page may be an invalid
117
- object.
118
- @param[in] layer_definition The layer definition object.
119
- @param[in] page The the page to use when action is \ref
120
- LOShareLayerAction_KeepOnePage.
121
- @param[in] action The action to apply to existing entities on the
122
- layer that is being shared.
123
- @return
124
- - \ref SU_ERROR_NONE on success
125
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
126
- object
127
- - \ref SU_ERROR_LAYER_LOCKED if layer_definition is a locked layer
128
- - \ref SU_ERROR_GENERIC if page does not refer to a valid object and the
129
- desired action requires a page
130
- - \ref SU_ERROR_GENERIC if an error occured attempting to share the layer
131
- - \ref SU_ERROR_OUT_OF_RANGE if action is not a valid value
132
- */
133
- LO_RESULT LOLayerSetShared(LOLayerRef layer_definition, LOPageRef page, LOShareLayerAction action);
134
-
135
- /**
136
- @brief Unshares a layer. If action is \ref LOUnshareLayerAction_Clear or
137
- \ref LOUnshareLayerAction_CopyToAllPages, then page may be an invalid
138
- object.
139
- @param[in] layer_definition The layer definition object.
140
- @param[in] page The the page to use when action is
141
- \ref LOUnshareLayerAction_CopyToOnePage.
142
- @param[in] action The action to apply to existing entities on the
143
- layer that is being unshared.
144
- @return
145
- - \ref SU_ERROR_NONE on success
146
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
147
- object
148
- - \ref SU_ERROR_LAYER_LOCKED if layer_definition is a locked layer
149
- - \ref SU_ERROR_GENERIC if page does not refer to a valid object and the
150
- desired action requires a page
151
- - \ref SU_ERROR_GENERIC if an error occured attempting to unshare the layer
152
- - \ref SU_ERROR_OUT_OF_RANGE if action is not a valid value
153
- */
154
- LO_RESULT LOLayerSetNonShared(
155
- LOLayerRef layer_definition, LOPageRef page, LOUnshareLayerAction action);
156
-
157
- /**
158
- @brief Gets the layer instance for the given layer definition on a given page.
159
- If layer_definition specifies a shared layer, page may be an invalid
160
- object.
161
- @param[in] layer_definition The layer definition object.
162
- @param[in] page The page object.
163
- @param[out] layer_instance The layer instance object.
164
- @return
165
- - \ref SU_ERROR_NONE on success
166
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
167
- object
168
- - \ref SU_ERROR_INVALID_INPUT if page does not refer to a valid object and
169
- layer_definition is not a shared layer
170
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if layer_instance is NULL
171
- - \ref SU_ERROR_OVERWRITE_VALID if *layer_instance already refers to a valid object
172
- - \ref SU_ERROR_GENERIC if an error occurred attempting to get the layer
173
- instance
174
- */
175
- LO_RESULT LOLayerGetLayerInstance(
176
- LOLayerRef layer_definition, LOPageRef page, LOLayerInstanceRef* layer_instance);
177
-
178
- /**
179
- @brief Returns the index of this layer in the document.
180
- @param[in] layer_definition The layer definition object.
181
- @param[out] index The index of the layer in the document.
182
- @return
183
- - \ref SU_ERROR_NONE on success
184
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
185
- object
186
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if index is NULL
187
- */
188
- LO_RESULT LOLayerGetLayerIndex(LOLayerRef layer_definition, size_t* index);
189
-
190
- /**
191
- @brief Returns the document that this layer belongs to.
192
- @since LayOut 2018, API 3.0
193
- @param[in] layer_definition The layer definition object.
194
- @param[out] document The document object.
195
- @return
196
- - \ref SU_ERROR_NONE on success
197
- - \ref SU_ERROR_INVALID_INPUT if layer_definition does not refer to a valid
198
- object
199
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if document is NULL
200
- */
201
- LO_RESULT LOLayerGetDocument(LOLayerRef layer_definition, LODocumentRef* document);
202
-
203
- #ifdef __cplusplus
204
- } // end extern "C"
205
- #endif // __cplusplus
206
-
207
- #endif // LAYOUT_MODEL_LAYER_H_