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.
- checksums.yaml +4 -4
- data/README.md +43 -24
- data/ext/arc_curve.c +50 -0
- data/ext/attribute_dictionaries.c +49 -32
- data/ext/attribute_dictionary.c +54 -127
- data/ext/axes.c +79 -0
- data/ext/behavior.c +100 -9
- data/ext/bounding_box.c +195 -0
- data/ext/camera.c +178 -0
- data/ext/classifications.c +85 -0
- data/ext/color.c +91 -163
- data/ext/component_definition.c +78 -162
- data/ext/component_instance.c +88 -9
- data/ext/construction.c +59 -0
- data/ext/curve.c +87 -0
- data/ext/definition_list.c +89 -109
- data/ext/depend +1 -0
- data/ext/drawing_element.c +96 -117
- data/ext/edge.c +147 -0
- data/ext/edge_use.c +37 -0
- data/ext/entities.c +573 -16
- data/ext/entities_builder.c +145 -0
- data/ext/entity.c +175 -215
- data/ext/environments.c +149 -0
- data/ext/extconf.rb +54 -10
- data/ext/face.c +331 -0
- data/ext/geom.c +172 -0
- data/ext/group.c +86 -0
- data/ext/helpers.c +244 -0
- data/ext/image.c +182 -0
- data/ext/image_rep.c +158 -0
- data/ext/instance_path.c +185 -0
- data/ext/lat_long.c +88 -0
- data/ext/layer.c +98 -0
- data/ext/layer_folder.c +99 -0
- data/ext/layers.c +122 -0
- data/ext/length.c +253 -0
- data/ext/line_styles.c +60 -0
- data/ext/loop.c +24 -0
- data/ext/material.c +144 -197
- data/ext/materials.c +49 -60
- data/ext/model.c +232 -26
- data/ext/options_store.c +188 -0
- data/ext/page.c +168 -0
- data/ext/pages.c +135 -0
- data/ext/point2d.c +195 -0
- data/ext/point3d.c +340 -0
- data/ext/polygon_mesh.c +253 -0
- data/ext/scriptup.h +279 -0
- data/ext/section_plane.c +44 -0
- data/ext/sketchup.c +102 -76
- data/ext/styles.c +91 -0
- data/ext/text.c +135 -0
- data/ext/texture.c +74 -83
- data/ext/texture_writer.c +104 -0
- data/ext/transformation.c +309 -0
- data/ext/transformation2d.c +190 -0
- data/ext/uv_helper.c +41 -0
- data/ext/vector2d.c +238 -0
- data/ext/vector3d.c +294 -0
- data/ext/vertex.c +67 -0
- data/lib/sketchup.rb +2 -2
- data/sig/_top_level.rbs +188 -0
- data/sig/array.rbs +52 -0
- data/sig/geom/bounding_box.rbs +28 -0
- data/sig/geom/bounds2d.rbs +20 -0
- data/sig/geom/lat_long.rbs +13 -0
- data/sig/geom/oriented_bounds2d.rbs +10 -0
- data/sig/geom/point2d.rbs +32 -0
- data/sig/geom/point3d.rbs +46 -0
- data/sig/geom/polygon_mesh.rbs +35 -0
- data/sig/geom/transformation.rbs +44 -0
- data/sig/geom/transformation2d.rbs +26 -0
- data/sig/geom/utm.rbs +14 -0
- data/sig/geom/vector2d.rbs +40 -0
- data/sig/geom/vector3d.rbs +49 -0
- data/sig/geom.rbs +25 -0
- data/sig/language_handler.rbs +8 -0
- data/sig/layout/angular_dimension.rbs +32 -0
- data/sig/layout/auto_text_definition.rbs +73 -0
- data/sig/layout/auto_text_definitions.rbs +15 -0
- data/sig/layout/connection_point.rbs +6 -0
- data/sig/layout/dictionary.rbs +18 -0
- data/sig/layout/document.rbs +61 -0
- data/sig/layout/ellipse.rbs +5 -0
- data/sig/layout/entities.rbs +10 -0
- data/sig/layout/entity.rbs +28 -0
- data/sig/layout/formatted_text.rbs +30 -0
- data/sig/layout/grid.rbs +24 -0
- data/sig/layout/group.rbs +17 -0
- data/sig/layout/image.rbs +7 -0
- data/sig/layout/label.rbs +31 -0
- data/sig/layout/layer.rbs +21 -0
- data/sig/layout/layer_instance.rbs +9 -0
- data/sig/layout/layers.rbs +18 -0
- data/sig/layout/linear_dimension.rbs +39 -0
- data/sig/layout/locked_entity_error.rbs +4 -0
- data/sig/layout/locked_layer_error.rbs +4 -0
- data/sig/layout/page.rbs +20 -0
- data/sig/layout/page_info.rbs +37 -0
- data/sig/layout/pages.rbs +17 -0
- data/sig/layout/path.rbs +34 -0
- data/sig/layout/rectangle.rbs +15 -0
- data/sig/layout/reference_entity.rbs +7 -0
- data/sig/layout/sketch_up_model.rbs +54 -0
- data/sig/layout/style.rbs +150 -0
- data/sig/layout/table.rbs +17 -0
- data/sig/layout/table_cell.rbs +13 -0
- data/sig/layout/table_column.rbs +10 -0
- data/sig/layout/table_row.rbs +10 -0
- data/sig/layout.rbs +4 -0
- data/sig/length.rbs +37 -0
- data/sig/numeric.rbs +23 -0
- data/sig/sketchup/animation.rbs +8 -0
- data/sig/sketchup/app_observer.rbs +11 -0
- data/sig/sketchup/arc_curve.rbs +14 -0
- data/sig/sketchup/attribute_dictionaries.rbs +11 -0
- data/sig/sketchup/attribute_dictionary.rbs +18 -0
- data/sig/sketchup/axes.rbs +13 -0
- data/sig/sketchup/behavior.rbs +19 -0
- data/sig/sketchup/camera.rbs +33 -0
- data/sig/sketchup/classification_schema.rbs +8 -0
- data/sig/sketchup/classifications.rbs +12 -0
- data/sig/sketchup/color.rbs +22 -0
- data/sig/sketchup/component_definition.rbs +43 -0
- data/sig/sketchup/component_instance.rbs +32 -0
- data/sig/sketchup/console.rbs +8 -0
- data/sig/sketchup/construction_line.rbs +17 -0
- data/sig/sketchup/construction_point.rbs +5 -0
- data/sig/sketchup/curve.rbs +13 -0
- data/sig/sketchup/definition_list.rbs +26 -0
- data/sig/sketchup/definition_observer.rbs +6 -0
- data/sig/sketchup/definitions_observer.rbs +8 -0
- data/sig/sketchup/dimension.rbs +18 -0
- data/sig/sketchup/dimension_linear.rbs +24 -0
- data/sig/sketchup/dimension_observer.rbs +5 -0
- data/sig/sketchup/dimension_radial.rbs +9 -0
- data/sig/sketchup/drawingelement.rbs +18 -0
- data/sig/sketchup/edge.rbs +24 -0
- data/sig/sketchup/edge_use.rbs +13 -0
- data/sig/sketchup/entities.rbs +61 -0
- data/sig/sketchup/entities_builder.rbs +15 -0
- data/sig/sketchup/entities_observer.rbs +9 -0
- data/sig/sketchup/entity.rbs +21 -0
- data/sig/sketchup/entity_observer.rbs +6 -0
- data/sig/sketchup/environment.rbs +25 -0
- data/sig/sketchup/environments.rbs +18 -0
- data/sig/sketchup/environments_observer.rbs +8 -0
- data/sig/sketchup/extensions_manager.rbs +11 -0
- data/sig/sketchup/face.rbs +44 -0
- data/sig/sketchup/frame_change_observer.rbs +5 -0
- data/sig/sketchup/group.rbs +38 -0
- data/sig/sketchup/http/request.rbs +17 -0
- data/sig/sketchup/http/response.rbs +7 -0
- data/sig/sketchup/http.rbs +27 -0
- data/sig/sketchup/image.rbs +23 -0
- data/sig/sketchup/image_rep.rbs +17 -0
- data/sig/sketchup/importer.rbs +14 -0
- data/sig/sketchup/input_point.rbs +25 -0
- data/sig/sketchup/instance_observer.rbs +6 -0
- data/sig/sketchup/instance_path.rbs +20 -0
- data/sig/sketchup/layer.rbs +20 -0
- data/sig/sketchup/layer_folder.rbs +26 -0
- data/sig/sketchup/layers.rbs +30 -0
- data/sig/sketchup/layers_observer.rbs +13 -0
- data/sig/sketchup/licensing/extension_license.rbs +8 -0
- data/sig/sketchup/licensing.rbs +15 -0
- data/sig/sketchup/line_style.rbs +5 -0
- data/sig/sketchup/line_styles.rbs +13 -0
- data/sig/sketchup/load_handler.rbs +8 -0
- data/sig/sketchup/loop.rbs +10 -0
- data/sig/sketchup/material.rbs +74 -0
- data/sig/sketchup/materials.rbs +22 -0
- data/sig/sketchup/materials_observer.rbs +10 -0
- data/sig/sketchup/menu.rbs +9 -0
- data/sig/sketchup/model.rbs +105 -0
- data/sig/sketchup/model_observer.rbs +23 -0
- data/sig/sketchup/options_manager.rbs +12 -0
- data/sig/sketchup/options_provider.rbs +23 -0
- data/sig/sketchup/options_provider_observer.rbs +5 -0
- data/sig/sketchup/overlay.rbs +21 -0
- data/sig/sketchup/overlays_manager.rbs +10 -0
- data/sig/sketchup/page.rbs +55 -0
- data/sig/sketchup/pages.rbs +25 -0
- data/sig/sketchup/pages_observer.rbs +7 -0
- data/sig/sketchup/pick_helper.rbs +28 -0
- data/sig/sketchup/regional_settings.rbs +7 -0
- data/sig/sketchup/rendering_options.rbs +89 -0
- data/sig/sketchup/rendering_options_observer.rbs +5 -0
- data/sig/sketchup/section_plane.rbs +12 -0
- data/sig/sketchup/selection.rbs +31 -0
- data/sig/sketchup/selection_observer.rbs +8 -0
- data/sig/sketchup/set.rbs +15 -0
- data/sig/sketchup/shadow_info.rbs +18 -0
- data/sig/sketchup/shadow_info_observer.rbs +5 -0
- data/sig/sketchup/skp.rbs +5 -0
- data/sig/sketchup/snap.rbs +10 -0
- data/sig/sketchup/style.rbs +9 -0
- data/sig/sketchup/styles.rbs +21 -0
- data/sig/sketchup/text.rbs +22 -0
- data/sig/sketchup/texture.rbs +14 -0
- data/sig/sketchup/texture_writer.rbs +14 -0
- data/sig/sketchup/tool.rbs +45 -0
- data/sig/sketchup/tools.rbs +14 -0
- data/sig/sketchup/tools_observer.rbs +6 -0
- data/sig/sketchup/uv_helper.rbs +6 -0
- data/sig/sketchup/vertex.rbs +11 -0
- data/sig/sketchup/view.rbs +87 -0
- data/sig/sketchup/view_observer.rbs +6 -0
- data/sig/sketchup.rbs +137 -0
- data/sig/sketchup_extension.rbs +23 -0
- data/sig/string.rbs +5 -0
- data/sig/ui/command.rbs +20 -0
- data/sig/ui/html_dialog.rbs +29 -0
- data/sig/ui/notification.rbs +16 -0
- data/sig/ui/toolbar.rbs +18 -0
- data/sig/ui/web_dialog.rbs +38 -0
- data/sig/ui.rbs +66 -0
- metadata +204 -287
- data/ext/attribute_dictionaries.h +0 -8
- data/ext/attribute_dictionary.h +0 -8
- data/ext/behavior.h +0 -8
- data/ext/color.h +0 -8
- data/ext/component_definition.h +0 -8
- data/ext/component_instance.h +0 -8
- data/ext/definition_list.h +0 -8
- data/ext/drawing_element.h +0 -8
- data/ext/entities.h +0 -8
- data/ext/entity.h +0 -8
- data/ext/material.h +0 -8
- data/ext/materials.h +0 -8
- data/ext/model.h +0 -8
- data/ext/not_implemented.c +0 -88
- data/ext/not_implemented.h +0 -20
- data/ext/sketchup.h +0 -9
- data/ext/texture.h +0 -8
- data/ext/typed_value.c +0 -84
- data/ext/typed_value.h +0 -11
- data/ext/utils.h +0 -111
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeometry.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeoutils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonImage.dylib +0 -4
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonPreferences.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUnits.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUtils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonZip.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +0 -36
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +0 -59
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +0 -262
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +0 -118
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +0 -107
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +0 -178
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +0 -19
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +0 -70
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +0 -34
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +0 -153
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +0 -96
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +0 -98
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +0 -64
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +0 -321
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +0 -163
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +0 -235
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +0 -285
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +0 -154
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +0 -165
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +0 -187
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +0 -84
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +0 -43
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +0 -424
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +0 -244
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +0 -17
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +0 -161
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +0 -242
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +0 -398
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +0 -89
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +0 -125
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +0 -86
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +0 -629
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition_snap_to_behavior_private.h +0 -46
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +0 -344
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +0 -143
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +0 -147
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +0 -224
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +0 -421
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +0 -194
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +0 -253
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +0 -198
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +0 -92
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +0 -70
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +0 -271
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +0 -214
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +0 -879
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +0 -189
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +0 -80
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +0 -90
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environment.h +0 -382
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environments.h +0 -133
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +0 -702
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +0 -138
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +0 -20
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +0 -695
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +0 -245
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +0 -155
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +0 -153
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +0 -289
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +0 -275
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +0 -266
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +0 -265
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +0 -301
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +0 -211
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +0 -81
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +0 -65
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +0 -182
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +0 -797
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +0 -187
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +0 -1826
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_entity_type_private.h +0 -44
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +0 -49
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +0 -72
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +0 -79
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +0 -166
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +0 -140
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +0 -180
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +0 -1016
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +0 -56
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +0 -26
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +0 -212
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +0 -156
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +0 -147
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +0 -45
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/snap.h +0 -183
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/space.h +0 -26
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +0 -303
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +0 -192
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +0 -392
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +0 -380
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +0 -280
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +0 -390
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +0 -79
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +0 -154
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +0 -125
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +0 -65
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +0 -16
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +0 -16
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +0 -239
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +0 -124
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +0 -50
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +0 -891
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutView.dll +0 -4
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
- data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +0 -117
- data/sketchup-sdk-win/headers/LayOutAPI/common.h +0 -22
- data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +0 -36
- data/sketchup-sdk-win/headers/LayOutAPI/layout.h +0 -49
- data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +0 -468
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +0 -569
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +0 -79
- data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +0 -107
- data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +0 -42
- data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +0 -120
- data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +0 -937
- data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +0 -402
- data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +0 -49
- data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +0 -114
- data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +0 -397
- data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +0 -251
- data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +0 -244
- data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +0 -146
- data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +0 -109
- data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +0 -332
- data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +0 -207
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +0 -117
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +0 -69
- data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +0 -508
- data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +0 -331
- data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +0 -372
- data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +0 -81
- data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +0 -464
- data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +0 -240
- data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +0 -120
- data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +0 -681
- data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +0 -1116
- data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +0 -472
- data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +0 -180
- data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +0 -36
- data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +0 -59
- data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +0 -262
- data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +0 -118
- data/sketchup-sdk-win/headers/SketchUpAPI/color.h +0 -107
- data/sketchup-sdk-win/headers/SketchUpAPI/common.h +0 -178
- data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +0 -19
- data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +0 -70
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +0 -34
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +0 -153
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +0 -96
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +0 -98
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +0 -64
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +0 -321
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +0 -163
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +0 -235
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +0 -285
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +0 -154
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +0 -165
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +0 -187
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +0 -84
- data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +0 -43
- data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +0 -424
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +0 -244
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +0 -17
- data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +0 -161
- data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +0 -242
- data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +0 -398
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +0 -89
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +0 -125
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +0 -86
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +0 -629
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition_snap_to_behavior_private.h +0 -46
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +0 -344
- data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +0 -143
- data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +0 -147
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +0 -224
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +0 -421
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +0 -194
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +0 -253
- data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +0 -198
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +0 -92
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +0 -70
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +0 -271
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +0 -214
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +0 -879
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +0 -189
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +0 -80
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +0 -90
- data/sketchup-sdk-win/headers/SketchUpAPI/model/environment.h +0 -382
- data/sketchup-sdk-win/headers/SketchUpAPI/model/environments.h +0 -133
- data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +0 -702
- data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +0 -138
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +0 -20
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +0 -695
- data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +0 -245
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +0 -155
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +0 -153
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +0 -289
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +0 -275
- data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +0 -266
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +0 -265
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +0 -301
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +0 -211
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +0 -81
- data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +0 -65
- data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +0 -182
- data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +0 -797
- data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +0 -187
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +0 -1826
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model_entity_type_private.h +0 -44
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +0 -49
- data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +0 -72
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +0 -79
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +0 -166
- data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +0 -140
- data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +0 -180
- data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +0 -1016
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +0 -56
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +0 -26
- data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +0 -212
- data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +0 -156
- data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +0 -147
- data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +0 -45
- data/sketchup-sdk-win/headers/SketchUpAPI/model/snap.h +0 -183
- data/sketchup-sdk-win/headers/SketchUpAPI/model/space.h +0 -26
- data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +0 -303
- data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +0 -192
- data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +0 -392
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +0 -380
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +0 -280
- data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +0 -390
- data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +0 -79
- data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +0 -154
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +0 -125
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +0 -65
- data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +0 -16
- data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +0 -16
- data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +0 -239
- data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +0 -124
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
// Copyright 2015-2020 Trimble Inc. All rights reserved.
|
|
2
|
-
// This file is intended for public distribution.
|
|
3
|
-
|
|
4
|
-
#ifndef LAYOUT_MODEL_GRID_H_
|
|
5
|
-
#define LAYOUT_MODEL_GRID_H_
|
|
6
|
-
|
|
7
|
-
#include <LayOutAPI/common.h>
|
|
8
|
-
#include <LayOutAPI/model/defs.h>
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/color.h>
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
@struct LOGridRef
|
|
14
|
-
@brief References a document's grid settings.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
#ifdef __cplusplus
|
|
18
|
-
extern "C" {
|
|
19
|
-
#endif // __cplusplus
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
@brief Gets the major space size of the grid.
|
|
23
|
-
@param[in] grid The grid object.
|
|
24
|
-
@param[out] spacing The spacing of the major divisions of the grid.
|
|
25
|
-
@return
|
|
26
|
-
- \ref SU_ERROR_NONE on success
|
|
27
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
28
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if spacing is NULL
|
|
29
|
-
*/
|
|
30
|
-
LO_RESULT LOGridGetMajorSpacing(LOGridRef grid, double* spacing);
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
@brief Sets the gap between major grid lines for the grid.
|
|
34
|
-
@since LayOut 2020.1, API 5.1
|
|
35
|
-
@param[in] grid The grid object.
|
|
36
|
-
@param[in] spacing The number of minor grid lines to have between major
|
|
37
|
-
grid lines. Must be positive.
|
|
38
|
-
@return
|
|
39
|
-
- \ref SU_ERROR_NONE on success
|
|
40
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
41
|
-
- \ref SU_ERROR_OUT_OF_RANGE if divisions is less than zero
|
|
42
|
-
*/
|
|
43
|
-
LO_RESULT LOGridSetMajorSpacing(LOGridRef grid, double spacing);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
@brief Gets the number of minor divisions of the grid.
|
|
47
|
-
@param[in] grid The grid object.
|
|
48
|
-
@param[out] divisions The minor division count.
|
|
49
|
-
@return
|
|
50
|
-
- \ref SU_ERROR_NONE on success
|
|
51
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
52
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if divisions is NULL
|
|
53
|
-
*/
|
|
54
|
-
LO_RESULT LOGridGetMinorDivisions(LOGridRef grid, int* divisions);
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
@brief Sets the number of minor divisions for the grid.
|
|
58
|
-
@since LayOut 2020.1, API 5.1
|
|
59
|
-
@param[in] grid The grid object.
|
|
60
|
-
@param[in] divisions The number of minor grid lines to have between major
|
|
61
|
-
grid lines. Must not be negative.
|
|
62
|
-
@return
|
|
63
|
-
- \ref SU_ERROR_NONE on success
|
|
64
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
65
|
-
- \ref SU_ERROR_OUT_OF_RANGE if divisions is less than zero
|
|
66
|
-
*/
|
|
67
|
-
LO_RESULT LOGridSetMinorDivisions(LOGridRef grid, int divisions);
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
@brief Gets the color for the major grid lines.
|
|
71
|
-
@param[in] grid The grid object.
|
|
72
|
-
@param[out] color The color of the major grid lines.
|
|
73
|
-
@return
|
|
74
|
-
- \ref SU_ERROR_NONE on success
|
|
75
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
76
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
|
|
77
|
-
*/
|
|
78
|
-
LO_RESULT LOGridGetMajorColor(LOGridRef grid, SUColor* color);
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
@brief Sets the color for the major grid lines.
|
|
82
|
-
@since LayOut 2020.1, API 5.1
|
|
83
|
-
@param[in] grid The grid object.
|
|
84
|
-
@param[in] color The new color for the major grid lines.
|
|
85
|
-
@return
|
|
86
|
-
- \ref SU_ERROR_NONE on success
|
|
87
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
88
|
-
*/
|
|
89
|
-
LO_RESULT LOGridSetMajorColor(LOGridRef grid, SUColor color);
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
@brief Gets the color for the minor grid lines.
|
|
93
|
-
@param[in] grid The grid object.
|
|
94
|
-
@param[out] color The color of the minor grid lines.
|
|
95
|
-
@return
|
|
96
|
-
- \ref SU_ERROR_NONE on success
|
|
97
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
98
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
|
|
99
|
-
*/
|
|
100
|
-
LO_RESULT LOGridGetMinorColor(LOGridRef grid, SUColor* color);
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
@brief Sets the color for the minor grid lines.
|
|
104
|
-
@since LayOut 2020.1, API 5.1
|
|
105
|
-
@param[in] grid The grid object.
|
|
106
|
-
@param[in] color The new color for the minor grid lines.
|
|
107
|
-
@return
|
|
108
|
-
- \ref SU_ERROR_NONE on success
|
|
109
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
110
|
-
*/
|
|
111
|
-
LO_RESULT LOGridSetMinorColor(LOGridRef grid, SUColor color);
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
@brief Gets whether or not the grid is visible.
|
|
115
|
-
@param[in] grid The grid object.
|
|
116
|
-
@param[out] show Whether or not the grid is visible.
|
|
117
|
-
@return
|
|
118
|
-
- \ref SU_ERROR_NONE on success
|
|
119
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
120
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if show is NULL
|
|
121
|
-
*/
|
|
122
|
-
LO_RESULT LOGridGetShow(LOGridRef grid, bool* show);
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
@brief Sets whether or not the grid is visible.
|
|
126
|
-
@since LayOut 2020.1, API 5.1
|
|
127
|
-
@param[in] grid The grid object.
|
|
128
|
-
@param[in] show Whether or not the grid is visible.
|
|
129
|
-
@return
|
|
130
|
-
- \ref SU_ERROR_NONE on success
|
|
131
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
132
|
-
*/
|
|
133
|
-
LO_RESULT LOGridSetShow(LOGridRef grid, bool show);
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
@brief Gets whether or not the major grid lines are visible.
|
|
137
|
-
@param[in] grid The grid object.
|
|
138
|
-
@param[out] show Whether or not the major grid lines are visible.
|
|
139
|
-
@return
|
|
140
|
-
- \ref SU_ERROR_NONE on success
|
|
141
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
142
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if show is NULL
|
|
143
|
-
*/
|
|
144
|
-
LO_RESULT LOGridGetShowMajor(LOGridRef grid, bool* show);
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
@brief Sets whether or not the major grid lines are visible.
|
|
148
|
-
@since LayOut 2020.1, API 5.1
|
|
149
|
-
@param[in] grid The grid object.
|
|
150
|
-
@param[in] show Whether or not the major grid lines are visible.
|
|
151
|
-
@return
|
|
152
|
-
- \ref SU_ERROR_NONE on success
|
|
153
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
154
|
-
*/
|
|
155
|
-
LO_RESULT LOGridSetShowMajor(LOGridRef grid, bool show);
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
@brief Gets whether or not the minor grid lines are visible.
|
|
159
|
-
@param[in] grid The grid object.
|
|
160
|
-
@param[out] show Whether or not the minor grid lines are visible.
|
|
161
|
-
@return
|
|
162
|
-
- \ref SU_ERROR_NONE on success
|
|
163
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
164
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if show is NULL
|
|
165
|
-
*/
|
|
166
|
-
LO_RESULT LOGridGetShowMinor(LOGridRef grid, bool* show);
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
@brief Sets whether or not the minor grid lines are visible.
|
|
170
|
-
@since LayOut 2020.1, API 5.1
|
|
171
|
-
@param[in] grid The grid object.
|
|
172
|
-
@param[in] show Whether or not the minor grid lines are visible.
|
|
173
|
-
@return
|
|
174
|
-
- \ref SU_ERROR_NONE on success
|
|
175
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
176
|
-
*/
|
|
177
|
-
LO_RESULT LOGridSetShowMinor(LOGridRef grid, bool show);
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
@brief Gets whether or not the grid will be printed.
|
|
181
|
-
@param[in] grid The grid object.
|
|
182
|
-
@param[out] print Whether or not the grid will be printed.
|
|
183
|
-
@return
|
|
184
|
-
- \ref SU_ERROR_NONE on success
|
|
185
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
186
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if print is NULL
|
|
187
|
-
*/
|
|
188
|
-
LO_RESULT LOGridGetPrint(LOGridRef grid, bool* print);
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
@brief Sets whether or not the grid is will be printed.
|
|
192
|
-
@since LayOut 2020.1, API 5.1
|
|
193
|
-
@param[in] grid The grid object.
|
|
194
|
-
@param[in] print Whether or not the grid will be printed.
|
|
195
|
-
@return
|
|
196
|
-
- \ref SU_ERROR_NONE on success
|
|
197
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
198
|
-
*/
|
|
199
|
-
LO_RESULT LOGridSetPrint(LOGridRef grid, bool print);
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
@brief Gets whether or not the grid is drawn on top of entities.
|
|
203
|
-
@since LayOut 2020.1, API 5.1
|
|
204
|
-
@param[in] grid The grid object.
|
|
205
|
-
@param[out] in_front Whether or not the grid is on top of entities.
|
|
206
|
-
@return
|
|
207
|
-
- \ref SU_ERROR_NONE on success
|
|
208
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
209
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if in_front is NULL
|
|
210
|
-
*/
|
|
211
|
-
LO_RESULT LOGridGetInFront(LOGridRef grid, bool* in_front);
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
@brief Sets whether or not the grid is drawn on top of entities.
|
|
215
|
-
@since LayOut 2020.1, API 5.1
|
|
216
|
-
@param[in] grid The grid object.
|
|
217
|
-
@param[in] in_front Whether or not the grid is on top of entities.
|
|
218
|
-
@return
|
|
219
|
-
- \ref SU_ERROR_NONE on success
|
|
220
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
221
|
-
*/
|
|
222
|
-
LO_RESULT LOGridSetInFront(LOGridRef grid, bool in_front);
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
@brief Gets whether or not the grid is clipped to the paper margins.
|
|
226
|
-
@since LayOut 2020.1, API 5.1
|
|
227
|
-
@param[in] grid The grid object.
|
|
228
|
-
@param[out] clip Whether or not the grid is on top of entities.
|
|
229
|
-
@return
|
|
230
|
-
- \ref SU_ERROR_NONE on success
|
|
231
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
232
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if clipped is NULL
|
|
233
|
-
*/
|
|
234
|
-
LO_RESULT LOGridGetClipToMargins(LOGridRef grid, bool* clip);
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
@brief Sets whether or not the grid is clipped to the paper margins.
|
|
238
|
-
@since LayOut 2020.1, API 5.1
|
|
239
|
-
@param[in] grid The grid object.
|
|
240
|
-
@param[in] clip Whether or not the grid is clipped to the paper margins.
|
|
241
|
-
@return
|
|
242
|
-
- \ref SU_ERROR_NONE on success
|
|
243
|
-
- \ref SU_ERROR_INVALID_INPUT if grid does not refer to a valid object
|
|
244
|
-
*/
|
|
245
|
-
LO_RESULT LOGridSetClipToMargins(LOGridRef grid, bool clip);
|
|
246
|
-
|
|
247
|
-
#ifdef __cplusplus
|
|
248
|
-
}
|
|
249
|
-
#endif // __cplusplus
|
|
250
|
-
|
|
251
|
-
#endif // LAYOUT_MODEL_GRID_H_
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
// Copyright 2015-2025 Trimble Inc. All rights reserved.
|
|
2
|
-
// This file is intended for public distribution.
|
|
3
|
-
|
|
4
|
-
#ifndef LAYOUT_MODEL_GROUP_H_
|
|
5
|
-
#define LAYOUT_MODEL_GROUP_H_
|
|
6
|
-
|
|
7
|
-
#include <LayOutAPI/common.h>
|
|
8
|
-
#include <LayOutAPI/model/defs.h>
|
|
9
|
-
#include <LayOutAPI/model/document.h>
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
@struct LOGroupRef
|
|
13
|
-
@brief References a group entity. A group is a special type of entity that
|
|
14
|
-
does not belong to a layer and contains other entities as children. A
|
|
15
|
-
group's children may include other groups, allowing for a hierarchical
|
|
16
|
-
tree structure of entities. A group must contain at least one child
|
|
17
|
-
and will be automatically collapsed if an operation is performed that
|
|
18
|
-
results in the group being empty.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
#ifdef __cplusplus
|
|
22
|
-
extern "C" {
|
|
23
|
-
#endif // __cplusplus
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
@enum LOGroupResizeBehaviorType
|
|
27
|
-
@brief Defines the different types of resize behavior when scale is changed.
|
|
28
|
-
*/
|
|
29
|
-
typedef enum {
|
|
30
|
-
LOGroupResizeBehaviorType_None = 0, /// Group is not resized.
|
|
31
|
-
LOGroupResizeBehaviorType_Bounds, /// Entity bounds are resized.
|
|
32
|
-
LOGroupResizeBehaviorType_BoundsAndFonts /// Bounds and fonts are resized.
|
|
33
|
-
} LOGroupResizeBehaviorType;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
@brief Creates a new group object, populating it with the entities in the given
|
|
37
|
-
\ref LOEntityListRef. It is possible to create a group from entities
|
|
38
|
-
that are already in a document, as well as from entities that are not
|
|
39
|
-
yet in a document. For entities that are already in a document, they can
|
|
40
|
-
only be grouped if they all belong to shared layers, or all belong to
|
|
41
|
-
non-shared layers on the same page. If the entities are in a document,
|
|
42
|
-
then the new group will be added to the document at the top of the group
|
|
43
|
-
hierarchy.
|
|
44
|
-
@param[out] group The group object.
|
|
45
|
-
@param[in] entity_list The list of entities to add to the group.
|
|
46
|
-
@return
|
|
47
|
-
- \ref SU_ERROR_NONE on success
|
|
48
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if group is NULL
|
|
49
|
-
- \ref SU_ERROR_OVERWRITE_VALID if *group already refers to a valid object
|
|
50
|
-
- \ref SU_ERROR_INVALID_INPUT if entity_list does not refer to a valid object
|
|
51
|
-
- \ref SU_ERROR_GENERIC if entity_list is empty
|
|
52
|
-
- \ref SU_ERROR_GENERIC if entity_list contains entities that belong to
|
|
53
|
-
different documents
|
|
54
|
-
- \ref SU_ERROR_GENERIC if entity_list contains a mix of entities that belong
|
|
55
|
-
to a document and entities that don't belong to a document
|
|
56
|
-
- \ref SU_ERROR_GENERIC if entity_list contains entities on both shared
|
|
57
|
-
and non-shared layers, or on non-shared layers belonging to different pages.
|
|
58
|
-
- \ref SU_ERROR_GENERIC if entity_list contains the same entity more than
|
|
59
|
-
once.
|
|
60
|
-
*/
|
|
61
|
-
LO_RESULT LOGroupCreate(LOGroupRef* group, LOEntityListRef entity_list);
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
@brief Adds a reference to a group object.
|
|
65
|
-
@param[in] group The group object.
|
|
66
|
-
@return
|
|
67
|
-
SU_ERROR_NONE on success
|
|
68
|
-
SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
69
|
-
*/
|
|
70
|
-
LO_RESULT LOGroupAddReference(LOGroupRef group);
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
@brief Releases a group object. The object will be invalidated if
|
|
74
|
-
releasing the last reference.
|
|
75
|
-
@param[in] group The group object.
|
|
76
|
-
@return
|
|
77
|
-
- \ref SU_ERROR_NONE on success
|
|
78
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if group is NULL
|
|
79
|
-
- \ref SU_ERROR_INVALID_INPUT if *group does not refer to a valid object
|
|
80
|
-
*/
|
|
81
|
-
LO_RESULT LOGroupRelease(LOGroupRef* group);
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
@brief Converts from a \ref LOEntityRef to a \ref LOGroupRef.
|
|
85
|
-
This is essentially a downcast operation so the given \ref LOEntityRef
|
|
86
|
-
must be convertible to a \ref LOGroupRef.
|
|
87
|
-
@param[in] entity The entity object.
|
|
88
|
-
@return
|
|
89
|
-
- The converted \ref LOGroupRef if the downcast operation succeeds
|
|
90
|
-
- If not, the returned reference will be invalid
|
|
91
|
-
*/
|
|
92
|
-
LO_EXPORT LOGroupRef LOGroupFromEntity(LOEntityRef entity);
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
@brief Converts from a \ref LOGroupRef to a \ref LOEntityRef.
|
|
96
|
-
This is essentially an upcast operation.
|
|
97
|
-
@param[in] group The group object.
|
|
98
|
-
@return
|
|
99
|
-
- The converted \ref LOEntityRef if group is a valid object
|
|
100
|
-
- If not, the returned reference will be invalid
|
|
101
|
-
*/
|
|
102
|
-
LO_EXPORT LOEntityRef LOGroupToEntity(LOGroupRef group);
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
@brief Removes all the entities from a group and removes the empty group. The
|
|
106
|
-
entities will become children of the group's parent. *group will be set
|
|
107
|
-
to invalid by this function.
|
|
108
|
-
@param[in] group The group object.
|
|
109
|
-
@return
|
|
110
|
-
- \ref SU_ERROR_NONE on success
|
|
111
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if group is NULL
|
|
112
|
-
- \ref SU_ERROR_INVALID_INPUT if *group does not refer to a valid object
|
|
113
|
-
- \ref SU_ERROR_ENTITY_LOCKED if group is locked
|
|
114
|
-
*/
|
|
115
|
-
LO_RESULT LOGroupUngroup(LOGroupRef* group);
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
@brief Populates a \ref LOEntityListRef object with all the children of a group.
|
|
119
|
-
@param[in] group The group object.
|
|
120
|
-
@param[in] entity_list The entity list object to populate with the group's
|
|
121
|
-
children.
|
|
122
|
-
@return
|
|
123
|
-
- \ref SU_ERROR_NONE on success
|
|
124
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
125
|
-
- \ref SU_ERROR_INVALID_INPUT if entity_list does not refer to a valid object
|
|
126
|
-
*/
|
|
127
|
-
LO_RESULT LOGroupGetEntities(LOGroupRef group, LOEntityListRef entity_list);
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
@brief Gets the number of children within a group.
|
|
131
|
-
@param[in] group The group object.
|
|
132
|
-
@param[out] num_entities The number of children in the group.
|
|
133
|
-
@return
|
|
134
|
-
- \ref SU_ERROR_NONE on success
|
|
135
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
136
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if num_entities is NULL
|
|
137
|
-
*/
|
|
138
|
-
LO_RESULT LOGroupGetNumberOfEntities(LOGroupRef group, size_t* num_entities);
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
@brief Gets the child at the given index from within a group.
|
|
142
|
-
@param[in] group The group object.
|
|
143
|
-
@param[in] index The index of the child entity to get.
|
|
144
|
-
@param[out] child_entity The child entity object.
|
|
145
|
-
@return
|
|
146
|
-
- \ref SU_ERROR_NONE on success
|
|
147
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
148
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if child_entity is NULL
|
|
149
|
-
- \ref SU_ERROR_OVERWRITE_VALID if *child_entity already refers to a valid
|
|
150
|
-
object
|
|
151
|
-
*/
|
|
152
|
-
LO_RESULT LOGroupGetEntityAtIndex(LOGroupRef group, size_t index, LOEntityRef* child_entity);
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
@brief Gets the scale factor set on a group.
|
|
156
|
-
@since LayOut 2018, API 3.0
|
|
157
|
-
@param[in] group The group object.
|
|
158
|
-
@param[out] scale_factor The scale factor of the group.
|
|
159
|
-
@return
|
|
160
|
-
- \ref SU_ERROR_NONE on success
|
|
161
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
162
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if scale_context is NULL
|
|
163
|
-
- \ref SU_ERROR_NO_DATA if group does not have a scale factor set.
|
|
164
|
-
*/
|
|
165
|
-
LO_RESULT LOGroupGetScaleFactor(LOGroupRef group, double* scale_factor);
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
@brief Sets the scale factor on a group.
|
|
169
|
-
@since LayOut 2018, API 3.0
|
|
170
|
-
@param[in] group The group object.
|
|
171
|
-
@param[in] scale_factor The scale factor to set.
|
|
172
|
-
@param[in] units The units format to use.
|
|
173
|
-
@param[in] resize_behavior How entities in the group should adjust
|
|
174
|
-
to the new scale.
|
|
175
|
-
@return
|
|
176
|
-
- \ref SU_ERROR_NONE on success
|
|
177
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
178
|
-
- \ref SU_ERROR_UNSUPPORTED if group already effectively has a scale from
|
|
179
|
-
a parent or sub-group.
|
|
180
|
-
- \ref SU_ERROR_LAYER_LOCKED if group is on a locked layer
|
|
181
|
-
- \ref SU_ERROR_ENTITY_LOCKED if group is locked
|
|
182
|
-
*/
|
|
183
|
-
LO_RESULT LOGroupSetScaleFactor(
|
|
184
|
-
LOGroupRef group, double scale_factor, LODocumentUnits units,
|
|
185
|
-
LOGroupResizeBehaviorType resize_behavior);
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
@brief Returns the scale units for a group.
|
|
190
|
-
@since LayOut 2018, API 3.0
|
|
191
|
-
@param[in] group The group object.
|
|
192
|
-
@param[out] units The unit format for the group.
|
|
193
|
-
@param[out] precision The units precision. This is expressed as a value in the
|
|
194
|
-
current units.
|
|
195
|
-
@return
|
|
196
|
-
- \ref SU_ERROR_NONE on success
|
|
197
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
198
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if units is NULL
|
|
199
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if precision is NULL
|
|
200
|
-
- \ref SU_ERROR_NO_DATA if this specific group does not have a scale factor set.
|
|
201
|
-
*/
|
|
202
|
-
LO_RESULT LOGroupGetScaleUnits(LOGroupRef group, LODocumentUnits* units, double* precision);
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
@brief Sets the units format on a group.
|
|
206
|
-
@since LayOut 2018, API 3.0
|
|
207
|
-
@param[in] group The group object.
|
|
208
|
-
@param[in] units The units format to use.
|
|
209
|
-
@param[in] precision The units precision. This is expressed as a value in the
|
|
210
|
-
specified units. LayOut only allows for a finite set of
|
|
211
|
-
precision values for each units setting, so it will set
|
|
212
|
-
the precision to the closest valid setting for the
|
|
213
|
-
specified units. See the "Units" section of LayOut's
|
|
214
|
-
"Document Setup" dialog for a reference of the available
|
|
215
|
-
precisions for each units setting.
|
|
216
|
-
@return
|
|
217
|
-
- \ref SU_ERROR_NONE on success
|
|
218
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
219
|
-
- \ref SU_ERROR_LAYER_LOCKED if group is on a locked layer
|
|
220
|
-
- \ref SU_ERROR_ENTITY_LOCKED if group is locked
|
|
221
|
-
- \ref SU_ERROR_UNSUPPORTED if group does not have a scale factor set.
|
|
222
|
-
*/
|
|
223
|
-
LO_RESULT LOGroupSetScaleUnits(LOGroupRef group, LODocumentUnits units, double precision);
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
@brief Removes the scale factor of a group.
|
|
227
|
-
@since LayOut 2018, API 3.0
|
|
228
|
-
@param[in] group The group object.
|
|
229
|
-
@param[in] resize_behavior How entities in the group should adjust
|
|
230
|
-
to the new scale.
|
|
231
|
-
@return
|
|
232
|
-
- \ref SU_ERROR_NONE on success
|
|
233
|
-
- \ref SU_ERROR_INVALID_INPUT if group does not refer to a valid object
|
|
234
|
-
- \ref SU_ERROR_LAYER_LOCKED if group is on a locked layer
|
|
235
|
-
- \ref SU_ERROR_ENTITY_LOCKED if group is locked
|
|
236
|
-
- \ref SU_ERROR_UNSUPPORTED if group does not have a scale factor set.
|
|
237
|
-
*/
|
|
238
|
-
LO_RESULT LOGroupRemoveScaleFactor(LOGroupRef group, LOGroupResizeBehaviorType resize_behavior);
|
|
239
|
-
|
|
240
|
-
#ifdef __cplusplus
|
|
241
|
-
} // end extern C
|
|
242
|
-
#endif // __cplusplus
|
|
243
|
-
|
|
244
|
-
#endif // LAYOUT_MODEL_GROUP_H_
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
// Copyright 2015 Trimble Navigation Ltd. All rights reserved.
|
|
2
|
-
// This file is intended for public distribution.
|
|
3
|
-
|
|
4
|
-
#ifndef LAYOUT_MODEL_IMAGE_H_
|
|
5
|
-
#define LAYOUT_MODEL_IMAGE_H_
|
|
6
|
-
|
|
7
|
-
#include <LayOutAPI/common.h>
|
|
8
|
-
#include <LayOutAPI/geometry/geometry.h>
|
|
9
|
-
#include <LayOutAPI/model/defs.h>
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
@struct LOImageRef
|
|
13
|
-
@brief References a raster image entity.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
#ifdef __cplusplus
|
|
17
|
-
extern "C" {
|
|
18
|
-
#endif // __cplusplus
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
@brief Creates a new image object from an image file on disk.
|
|
22
|
-
@param[out] image The image object.
|
|
23
|
-
@param[in] bounds The bounding box for the image.
|
|
24
|
-
@param[in] file_path The file path to the image on disk.
|
|
25
|
-
@return
|
|
26
|
-
- \ref SU_ERROR_NONE on success
|
|
27
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if image is NULL
|
|
28
|
-
- \ref SU_ERROR_OVERWRITE_VALID if *image already refers to a valid object
|
|
29
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if bounds is NULL
|
|
30
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if file_path is NULL
|
|
31
|
-
- \ref SU_ERROR_OUT_OF_RANGE if bounds has a width or height of zero
|
|
32
|
-
- \ref SU_ERROR_SERIALIZATION if there was an error reading the image file or
|
|
33
|
-
allocating the memory for the image
|
|
34
|
-
- \ref SU_ERROR_NO_DATA if the image file could not be found
|
|
35
|
-
*/
|
|
36
|
-
LO_RESULT LOImageCreateFromFile(
|
|
37
|
-
LOImageRef* image, const LOAxisAlignedRect2D* bounds, const char* file_path);
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
@brief Adds a reference to an image object.
|
|
41
|
-
@param[in] image The image object.
|
|
42
|
-
@return
|
|
43
|
-
- \ref SU_ERROR_NONE on success
|
|
44
|
-
- \ref SU_ERROR_INVALID_INPUT if image does not refer to a valid object
|
|
45
|
-
*/
|
|
46
|
-
LO_RESULT LOImageAddReference(LOImageRef image);
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
@brief Releases an image object. The object will be invalidated if
|
|
50
|
-
releasing the last reference.
|
|
51
|
-
@param[in] image The image object.
|
|
52
|
-
@return
|
|
53
|
-
- \ref SU_ERROR_NONE on success
|
|
54
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if image is NULL
|
|
55
|
-
- \ref SU_ERROR_INVALID_INPUT if *image does not refer to a valid object
|
|
56
|
-
*/
|
|
57
|
-
LO_RESULT LOImageRelease(LOImageRef* image);
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
@brief Converts from a \ref LOEntityRef to a \ref LOImageRef.
|
|
61
|
-
This is essentially a downcast operation so the given \ref LOEntityRef
|
|
62
|
-
must be convertible to a \ref LOImageRef.
|
|
63
|
-
@param[in] entity The entity object.
|
|
64
|
-
@return
|
|
65
|
-
- The converted \ref LOImageRef if the downcast operation succeeds
|
|
66
|
-
- If not, the returned reference will be invalid
|
|
67
|
-
*/
|
|
68
|
-
LO_EXPORT LOImageRef LOImageFromEntity(LOEntityRef entity);
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
@brief Converts from a \ref LOImageRef to a \ref LOEntityRef.
|
|
72
|
-
This is essentially an upcast operation.
|
|
73
|
-
@param[in] image The image object.
|
|
74
|
-
@return
|
|
75
|
-
- The converted \ref LOEntityRef if image is a valid object
|
|
76
|
-
- If not, the returned reference will be invalid
|
|
77
|
-
*/
|
|
78
|
-
LO_EXPORT LOEntityRef LOImageToEntity(LOImageRef image);
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
@brief Gets an image object's image representation.
|
|
82
|
-
@param[in] image The image object.
|
|
83
|
-
@param[out] imagerep The image representation object.
|
|
84
|
-
@return
|
|
85
|
-
- \ref SU_ERROR_NONE on success
|
|
86
|
-
- \ref SU_ERROR_INVALID_INPUT if image does not refer to a valid object
|
|
87
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if imagerep is NULL
|
|
88
|
-
- \ref SU_ERROR_OVERWRITE_VALID if *imagerep already refers to a valid object
|
|
89
|
-
*/
|
|
90
|
-
LO_RESULT LOImageGetImageRep(LOImageRef image, LOImageRepRef* imagerep);
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
@brief Gets an image object's image representation in the document's output resolution.
|
|
94
|
-
|
|
95
|
-
This should be used by exporters to retrieve the image data at the quality set by \ref
|
|
96
|
-
LOPageInfoSetImageOutputResolution.
|
|
97
|
-
@since LayOut 2023.1, API 8.1
|
|
98
|
-
@param[in] image The image object.
|
|
99
|
-
@param[out] imagerep The image representation object.
|
|
100
|
-
@return
|
|
101
|
-
- \ref SU_ERROR_NONE on success
|
|
102
|
-
- \ref SU_ERROR_INVALID_INPUT if \p image does not refer to a valid object
|
|
103
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p imagerep is NULL
|
|
104
|
-
- \ref SU_ERROR_OVERWRITE_VALID if \p imagerep already refers to a valid object
|
|
105
|
-
*/
|
|
106
|
-
LO_RESULT LOImageGetOutputImageRep(LOImageRef image, LOImageRepRef* imagerep);
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
@brief Returns any clip mask assigned to the image.
|
|
110
|
-
@param[in] image The image object.
|
|
111
|
-
@param[out] clip_mask The clip mask of the image.
|
|
112
|
-
@return
|
|
113
|
-
- \ref SU_ERROR_NONE on success
|
|
114
|
-
- \ref SU_ERROR_INVALID_INPUT if image does not refer to a valid object
|
|
115
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if clip_mask is NULL
|
|
116
|
-
- \ref SU_ERROR_OVERWRITE_VALID if *clip_mask already refers to a valid object
|
|
117
|
-
- \ref SU_ERROR_NO_DATA if the image is not being clipped by a clip mask
|
|
118
|
-
*/
|
|
119
|
-
LO_RESULT LOImageGetClipMask(LOImageRef image, LOEntityRef* clip_mask);
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
@brief Sets the clip mask of the image. A clip mask defines a region
|
|
123
|
-
of the entity that is visible. This allows you to crop with arbitrary
|
|
124
|
-
shapes. This operation will replace any clip mask that is already
|
|
125
|
-
assigned to this image. The entity being used must not be already part
|
|
126
|
-
of a document or group. The clip mask entity must be either a
|
|
127
|
-
rectangle, ellipse or a path.
|
|
128
|
-
@note Starting in LayOut 2020.1, API 5.1, clip_mask may be SU_INVALID, which
|
|
129
|
-
will remove the existing clip mask, if any.
|
|
130
|
-
@since LayOut 2017, API 2.0
|
|
131
|
-
@param[in] image The image object.
|
|
132
|
-
@param[in] clip_mask The new clip mask for the image.
|
|
133
|
-
@return
|
|
134
|
-
- \ref SU_ERROR_NONE on success
|
|
135
|
-
- \ref SU_ERROR_INVALID_INPUT if image does not refer to a valid object
|
|
136
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if clip_mask is already in a document or group
|
|
137
|
-
- \ref SU_ERROR_UNSUPPORTED if clip_mask is not a rectangle, ellipse, or path
|
|
138
|
-
- \ref SU_ERROR_LAYER_LOCKED if image is on a locked layer
|
|
139
|
-
- \ref SU_ERROR_ENTITY_LOCKED if image is locked
|
|
140
|
-
*/
|
|
141
|
-
LO_RESULT LOImageSetClipMask(LOImageRef image, LOEntityRef clip_mask);
|
|
142
|
-
|
|
143
|
-
#ifdef __cplusplus
|
|
144
|
-
} // end extern "C"
|
|
145
|
-
#endif // __cplusplus
|
|
146
|
-
#endif // LAYOUT_MODEL_IMAGE_H_
|