scriptup 2024.0.5 → 2024.0.7

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/ext/attribute_dictionaries.c +1 -1
  3. data/ext/color.c +3 -3
  4. data/ext/component_definition.c +2 -2
  5. data/ext/definition_list.c +1 -1
  6. data/ext/entity.c +8 -3
  7. data/ext/extconf.rb +1 -1
  8. data/ext/material.c +4 -7
  9. data/ext/utils.h +4 -4
  10. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
  11. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
  12. data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
  13. data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
  14. data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
  15. data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
  16. data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
  17. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
  18. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
  19. data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
  20. data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +117 -0
  21. data/sketchup-sdk-win/headers/LayOutAPI/common.h +22 -0
  22. data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +78 -0
  23. data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +36 -0
  24. data/sketchup-sdk-win/headers/LayOutAPI/layout.h +49 -0
  25. data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +468 -0
  26. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +569 -0
  27. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +79 -0
  28. data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +107 -0
  29. data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +42 -0
  30. data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +120 -0
  31. data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +864 -0
  32. data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +59 -0
  33. data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +78 -0
  34. data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +330 -0
  35. data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +49 -0
  36. data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +114 -0
  37. data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +397 -0
  38. data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +251 -0
  39. data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +243 -0
  40. data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +146 -0
  41. data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +109 -0
  42. data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +332 -0
  43. data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +207 -0
  44. data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +117 -0
  45. data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +69 -0
  46. data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +456 -0
  47. data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +261 -0
  48. data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +372 -0
  49. data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +81 -0
  50. data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +464 -0
  51. data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +240 -0
  52. data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +120 -0
  53. data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +624 -0
  54. data/sketchup-sdk-win/headers/LayOutAPI/model/skpfilereference.h +94 -0
  55. data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +1080 -0
  56. data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +470 -0
  57. data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +156 -0
  58. metadata +51 -3
@@ -0,0 +1,94 @@
1
+ // Copyright 2017 Trimble Inc., All rights reserved.
2
+
3
+ #ifndef LAYOUT_MODEL_SKPFILEREFERENCE_H_
4
+ #define LAYOUT_MODEL_SKPFILEREFERENCE_H_
5
+
6
+ #include <LayOutAPI/common.h>
7
+ #include <LayOutAPI/geometry/geometry.h>
8
+ #include <LayOutAPI/model/defs.h>
9
+ #include <SketchUpAPI/model/defs.h>
10
+
11
+ /**
12
+ @struct LOSkpFileRef
13
+ @since LayOut 2018, API 3.0
14
+ @brief References a SketchUp file reference object.
15
+ */
16
+ DEFINE_SU_TYPE(LOSkpFileRef)
17
+
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif // __cplusplus
21
+
22
+ /**
23
+ @brief Creates a SketchUp file reference object with a Skp model.
24
+ This function takes ownership of the given model. Upon success, user
25
+ should not release the model, or create another LOSkpFileRef with
26
+ the same model. The model is valid and mutable till the LOSkpFileRef is
27
+ released.
28
+ Do not use a model obtained by a 'Get' function such as the
29
+ \ref LOSketchUpModelGetModel() as the ownership cannot be transfered
30
+ to the file_ref.
31
+ @since LayOut 2018, API 3.0
32
+ @param[out] file_ref The file reference object to be created.
33
+ @param[in] model The SketchUp model.
34
+ @return
35
+ - \ref SU_ERROR_NONE on success
36
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if file_ref is NULL
37
+ - \ref SU_ERROR_OVERWRITE_VALID if *file_ref refers to a valid object
38
+ - \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
39
+ */
40
+ LO_RESULT LOSkpFileReferenceCreate(LOSkpFileRef* file_ref, SUModelRef model);
41
+
42
+ /**
43
+ @brief Releases a SketchUp file reference object.
44
+ @since LayOut 2018, API 3.0
45
+ @param[in] file_ref The SketchUp file reference object.
46
+ @return
47
+ - \ref SU_ERROR_NONE on success
48
+ - \ref SU_ERROR_NULL_POINTER_INPUT if file_ref is NULL
49
+ - \ref SU_ERROR_INVALID_INPUT if *file_ref does not refer to a valid object
50
+ */
51
+ LO_RESULT LOSkpFileReferenceRelease(LOSkpFileRef* file_ref);
52
+
53
+ /**
54
+ @brief Creates a new SketchUp model object with the specified bounds and
55
+ file reference.
56
+ This function increases reference count on the given file reference.
57
+ @since LayOut 2018, API 3.0
58
+ @param[out] model The model entity to be created.
59
+ @param[in] file_ref The SketchUp file reference object.
60
+ @param[in] bounds The starting dimensions of the model entity.
61
+ @return
62
+ - \ref SU_ERROR_NONE on success
63
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if model is NULL
64
+ - \ref SU_ERROR_OVERWRITE_VALID if *model already refers to a valid object
65
+ - \ref SU_ERROR_INVALID_INPUT if file_ref is invalid
66
+ - \ref SU_ERROR_NULL_POINTER_INPUT if bounds is NULL
67
+ - \ref SU_ERROR_OUT_OF_RANGE if bounds has a width or height of zero
68
+ */
69
+ LO_RESULT LOSketchUpModelCreateWithSkpFileRef(
70
+ LOSketchUpModelRef* model, LOSkpFileRef file_ref, const LOAxisAlignedRect2D* bounds);
71
+
72
+ /**
73
+ @brief Applies a clip mask to all entities inside a group. Entities outside
74
+ the clip mask will be removed from the document. Entities that cross
75
+ the clip mask boundary will be removed but may be replaced by new
76
+ entities. The clip_mask entity must be a \ref LORectangleRef,
77
+ \ref LOEllipseRef, or \ref LOPathRef.
78
+ @since LayOut 2018, API 3.0
79
+ @param[in] group The group to apply the clipmask to.
80
+ @param[in] clip_mask The entity to use as a clip mask.
81
+ @return
82
+ @return
83
+ - \ref SU_ERROR_NONE on success
84
+ - \ref SU_ERROR_ENTITY_LOCKED if group is locked
85
+ - \ref SU_ERROR_LAYER_LOCKED if group contains entities on locked layers
86
+ - \ref SU_ERROR_GENERIC if clipping algorithm fails
87
+ */
88
+ LO_RESULT LOGroupClipChildren(LOGroupRef group, LOEntityRef clip_mask);
89
+
90
+ #ifdef __cplusplus
91
+ } // end extern "C"
92
+ #endif // __cplusplus
93
+
94
+ #endif // LAYOUT_MODEL_SKPFILEREFERENCE_H_