sketchup-api-stubs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/SketchUp/Geom/BoundingBox.rb +335 -0
  3. data/SketchUp/Geom/LatLong.rb +123 -0
  4. data/SketchUp/Geom/Point3d.rb +643 -0
  5. data/SketchUp/Geom/PolygonMesh.rb +478 -0
  6. data/SketchUp/Geom/Transformation.rb +476 -0
  7. data/SketchUp/Geom/UTM.rb +135 -0
  8. data/SketchUp/Geom/Vector3d.rb +684 -0
  9. data/SketchUp/Sketchup/Animation.rb +137 -0
  10. data/SketchUp/Sketchup/AppObserver.rb +157 -0
  11. data/SketchUp/Sketchup/ArcCurve.rb +209 -0
  12. data/SketchUp/Sketchup/AttributeDictionaries.rb +146 -0
  13. data/SketchUp/Sketchup/AttributeDictionary.rb +280 -0
  14. data/SketchUp/Sketchup/Axes.rb +149 -0
  15. data/SketchUp/Sketchup/Behavior.rb +338 -0
  16. data/SketchUp/Sketchup/Camera.rb +594 -0
  17. data/SketchUp/Sketchup/ClassificationSchema.rb +63 -0
  18. data/SketchUp/Sketchup/Classifications.rb +118 -0
  19. data/SketchUp/Sketchup/Color.rb +291 -0
  20. data/SketchUp/Sketchup/ComponentDefinition.rb +562 -0
  21. data/SketchUp/Sketchup/ComponentInstance.rb +597 -0
  22. data/SketchUp/Sketchup/Console.rb +78 -0
  23. data/SketchUp/Sketchup/ConstructionLine.rb +257 -0
  24. data/SketchUp/Sketchup/ConstructionPoint.rb +32 -0
  25. data/SketchUp/Sketchup/Curve.rb +196 -0
  26. data/SketchUp/Sketchup/DefinitionList.rb +312 -0
  27. data/SketchUp/Sketchup/DefinitionObserver.rb +73 -0
  28. data/SketchUp/Sketchup/DefinitionsObserver.rb +102 -0
  29. data/SketchUp/Sketchup/Dimension.rb +167 -0
  30. data/SketchUp/Sketchup/DimensionLinear.rb +232 -0
  31. data/SketchUp/Sketchup/DimensionObserver.rb +38 -0
  32. data/SketchUp/Sketchup/DimensionRadial.rb +87 -0
  33. data/SketchUp/Sketchup/Drawingelement.rb +400 -0
  34. data/SketchUp/Sketchup/Edge.rb +517 -0
  35. data/SketchUp/Sketchup/EdgeUse.rb +213 -0
  36. data/SketchUp/Sketchup/Entities.rb +1011 -0
  37. data/SketchUp/Sketchup/EntitiesObserver.rb +125 -0
  38. data/SketchUp/Sketchup/Entity.rb +522 -0
  39. data/SketchUp/Sketchup/EntityObserver.rb +59 -0
  40. data/SketchUp/Sketchup/ExtensionsManager.rb +129 -0
  41. data/SketchUp/Sketchup/Face.rb +737 -0
  42. data/SketchUp/Sketchup/FrameChangeObserver.rb +104 -0
  43. data/SketchUp/Sketchup/Group.rb +705 -0
  44. data/SketchUp/Sketchup/Http.rb +27 -0
  45. data/SketchUp/Sketchup/Http/Request.rb +285 -0
  46. data/SketchUp/Sketchup/Http/Response.rb +62 -0
  47. data/SketchUp/Sketchup/Image.rb +393 -0
  48. data/SketchUp/Sketchup/Importer.rb +192 -0
  49. data/SketchUp/Sketchup/InputPoint.rb +393 -0
  50. data/SketchUp/Sketchup/InstanceObserver.rb +82 -0
  51. data/SketchUp/Sketchup/InstancePath.rb +297 -0
  52. data/SketchUp/Sketchup/Layer.rb +240 -0
  53. data/SketchUp/Sketchup/Layers.rb +235 -0
  54. data/SketchUp/Sketchup/LayersObserver.rb +136 -0
  55. data/SketchUp/Sketchup/Licensing.rb +47 -0
  56. data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +88 -0
  57. data/SketchUp/Sketchup/Loop.rb +141 -0
  58. data/SketchUp/Sketchup/Material.rb +384 -0
  59. data/SketchUp/Sketchup/Materials.rb +283 -0
  60. data/SketchUp/Sketchup/MaterialsObserver.rb +141 -0
  61. data/SketchUp/Sketchup/Menu.rb +97 -0
  62. data/SketchUp/Sketchup/Model.rb +1459 -0
  63. data/SketchUp/Sketchup/ModelObserver.rb +356 -0
  64. data/SketchUp/Sketchup/OptionsManager.rb +135 -0
  65. data/SketchUp/Sketchup/OptionsProvider.rb +277 -0
  66. data/SketchUp/Sketchup/OptionsProviderObserver.rb +58 -0
  67. data/SketchUp/Sketchup/Page.rb +636 -0
  68. data/SketchUp/Sketchup/Pages.rb +349 -0
  69. data/SketchUp/Sketchup/PagesObserver.rb +76 -0
  70. data/SketchUp/Sketchup/PickHelper.rb +457 -0
  71. data/SketchUp/Sketchup/RegionalSettings.rb +43 -0
  72. data/SketchUp/Sketchup/RenderingOptions.rb +337 -0
  73. data/SketchUp/Sketchup/RenderingOptionsObserver.rb +44 -0
  74. data/SketchUp/Sketchup/SectionPlane.rb +88 -0
  75. data/SketchUp/Sketchup/Selection.rb +470 -0
  76. data/SketchUp/Sketchup/SelectionObserver.rb +115 -0
  77. data/SketchUp/Sketchup/Set.rb +253 -0
  78. data/SketchUp/Sketchup/ShadowInfo.rb +257 -0
  79. data/SketchUp/Sketchup/ShadowInfoObserver.rb +57 -0
  80. data/SketchUp/Sketchup/Style.rb +77 -0
  81. data/SketchUp/Sketchup/Styles.rb +204 -0
  82. data/SketchUp/Sketchup/Text.rb +241 -0
  83. data/SketchUp/Sketchup/Texture.rb +211 -0
  84. data/SketchUp/Sketchup/TextureWriter.rb +237 -0
  85. data/SketchUp/Sketchup/Tool.rb +808 -0
  86. data/SketchUp/Sketchup/Tools.rb +120 -0
  87. data/SketchUp/Sketchup/ToolsObserver.rb +154 -0
  88. data/SketchUp/Sketchup/UVHelper.rb +61 -0
  89. data/SketchUp/Sketchup/Vertex.rb +143 -0
  90. data/SketchUp/Sketchup/View.rb +965 -0
  91. data/SketchUp/Sketchup/ViewObserver.rb +40 -0
  92. data/SketchUp/UI/Command.rb +307 -0
  93. data/SketchUp/UI/HtmlDialog.rb +346 -0
  94. data/SketchUp/UI/Notification.rb +229 -0
  95. data/SketchUp/UI/Toolbar.rb +243 -0
  96. data/SketchUp/UI/WebDialog.rb +623 -0
  97. data/SketchUp/_top_level.rb +193 -0
  98. data/SketchUp/array.rb +593 -0
  99. data/SketchUp/geom.rb +231 -0
  100. data/SketchUp/languagehandler.rb +92 -0
  101. data/SketchUp/length.rb +210 -0
  102. data/SketchUp/numeric.rb +249 -0
  103. data/SketchUp/sketchup.rb +1290 -0
  104. data/SketchUp/sketchupextension.rb +355 -0
  105. data/SketchUp/string.rb +24 -0
  106. data/SketchUp/ui.rb +637 -0
  107. metadata +176 -0
@@ -0,0 +1,115 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # This observer interface is implemented to react to selection events. To
5
+ # implement this observer, create a Ruby class of this type, override the
6
+ # desired methods, and add an instance of the observer to the objects of
7
+ # interests.
8
+ #
9
+ # @example
10
+ # # This is an example of an observer that watches the selection for
11
+ # # changes.
12
+ # class MySelectionObserver < Sketchup::SelectionObserver
13
+ # def onSelectionBulkChange(selection)
14
+ # puts "onSelectionBulkChange: #{selection}"
15
+ # end
16
+ # end
17
+ #
18
+ # # Attach the observer.
19
+ # Sketchup.active_model.selection.add_observer(MySelectionObserver.new)
20
+ #
21
+ # @version SketchUp 6.0
22
+ class Sketchup::SelectionObserver
23
+
24
+ # Instance Methods
25
+
26
+ #
27
+ # @example
28
+ # def onSelectionAdded(selection, entity)
29
+ # puts "onSelectionAdded: #{entity}"
30
+ # end
31
+ #
32
+ # @note This event might not trigger even if a single element is selected. For
33
+ # instance the Selection tool will trigger #onSelectionBulkChange regardless.
34
+ #
35
+ # @param [Sketchup::Selection] selection
36
+ #
37
+ # @param [Sketchup::Entity] entity
38
+ #
39
+ # @return [nil]
40
+ #
41
+ # @see onSelectionBulkChange
42
+ #
43
+ # @version SketchUp 6.0
44
+ def onSelectionAdded(selection, entity)
45
+ end
46
+
47
+ # The {#onSelectionBulkChange} method is called whenever items are added or
48
+ # removed from the selection set.
49
+ #
50
+ # The {#onSelectionBulkChange} callback will not trigger if the selection
51
+ # is cleared by clicking on empty model space. Use the {#onSelectionCleared}
52
+ # method to catch this case.
53
+ #
54
+ # @example
55
+ # def onSelectionBulkChange(selection)
56
+ # puts "onSelectionRemoved: #{selection}"
57
+ # end
58
+ #
59
+ # @param [Sketchup::Selection] selection
60
+ #
61
+ # @return [nil]
62
+ #
63
+ # @version SketchUp 6.0
64
+ def onSelectionBulkChange(selection)
65
+ end
66
+
67
+ # The {#onSelectionCleared} method is called when the selection is completely
68
+ # emptied.
69
+ #
70
+ # @example
71
+ # def onSelectionCleared(selection)
72
+ # puts "onSelectionCleared: #{selection}"
73
+ # end
74
+ #
75
+ # @param [Sketchup::Selection] selection
76
+ #
77
+ # @return [nil]
78
+ #
79
+ # @version SketchUp 6.0
80
+ def onSelectionCleared(selection)
81
+ end
82
+
83
+ #
84
+ # @example
85
+ # class MySelectionObserver < Sketchup::SelectionObserver
86
+ # # Note that there is a bug that prevent this from being called. Instead
87
+ # # listen to onSelectedRemoved until the bug is fixed.
88
+ # def onSelectionRemoved(selection, entity)
89
+ # puts "onSelectionRemoved: #{entity}"
90
+ # end
91
+ # # To work around this you must catch this event instead until the bug is
92
+ # # fixed:
93
+ # def onSelectedRemoved(selection, entity)
94
+ # # You can forward it to the correct event to be future compatible.
95
+ # onSelectionRemoved(selection, entity)
96
+ # end
97
+ # end
98
+ #
99
+ # # Attach the observer.
100
+ # Sketchup.active_model.selection.add_observer(MySelectionObserver.new)
101
+ #
102
+ # @note Due to a bug in SketchUp this event doesn't trigger. Instead
103
+ # +onSelectedRemoved+ is called.
104
+ #
105
+ # @param [Sketchup::Entity] entity
106
+ #
107
+ # @param [Sketchup::Selection] selection
108
+ #
109
+ # @return [nil]
110
+ #
111
+ # @version SketchUp 6.0
112
+ def onSelectionRemoved(selection, entity)
113
+ end
114
+
115
+ end
@@ -0,0 +1,253 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The set class represents a collection of unique objects. This class is useful
5
+ # for keeping track of a group of related entities, kind of like a selection
6
+ # set that stays around for as long as you need it to.
7
+ #
8
+ # To make a set of your own, create an empty one using Sketchup::Set.new, and
9
+ # then add items to it.
10
+ # Note that in SketchUp 2014 this class was changed from Set to Sketchup::Set
11
+ # in order to avoid conflict with the Ruby Standard Library. The Sketchup::Set
12
+ # class is deprecated and new extensions should make use of Ruby's Set class
13
+ # unless they need backward compatibility.
14
+ #
15
+ # If you want to ensure backwards compatibility you can use this shim:
16
+ #
17
+ # @example
18
+ # module Example
19
+ #
20
+ # # Shim for the Set class which was moved in SketchUp 2014
21
+ # if defined?(Sketchup::Set)
22
+ # Set = Sketchup::Set
23
+ # end
24
+ #
25
+ # def self.test_set_shim
26
+ # s = Set.new
27
+ # s.insert('Hello')
28
+ # s.insert('World')
29
+ # puts s.to_a
30
+ # end
31
+ #
32
+ # end
33
+ #
34
+ # @example
35
+ # my_set = Sketchup::Set.new
36
+ # my_set.insert entity1
37
+ # my_set.insert entity2
38
+ #
39
+ # @version SketchUp 6.0
40
+ class Sketchup::Set
41
+
42
+ # Instance Methods
43
+
44
+ # The clear method is used to clear all objects out of the set.
45
+ #
46
+ # @example
47
+ # set = Sketchup::Set.new
48
+ # toolbar = UI::Toolbar.new "Test"
49
+ # set.insert toolbar
50
+ # if (set.include? toolbar)
51
+ # UI.messagebox "Success: Contains Toolbar Object"
52
+ # else
53
+ # UI.messagebox "Failure"
54
+ # end
55
+ # set.clear
56
+ # if (set.include? toolbar)
57
+ # UI.messagebox set
58
+ # else
59
+ # UI.messagebox "Set is empty"
60
+ # end
61
+ #
62
+ # @return set - an empty Set object
63
+ #
64
+ # @version SketchUp 6.0
65
+ def clear
66
+ end
67
+
68
+ # The contains? method is an alias for include?. See also Set.include?
69
+ #
70
+ # @example
71
+ # set = Sketchup::Set.new
72
+ # toolbar = UI::Toolbar.new "Test"
73
+ # set.insert toolbar
74
+ # if (set.contains? toolbar)
75
+ # UI.messagebox "Success: Contains Toolbar Object"
76
+ # else
77
+ # UI.messagebox "Failure"
78
+ # end
79
+ #
80
+ # @param object
81
+ # A Ruby object of any type.
82
+ #
83
+ # @return status - true if the set contains the object, false if
84
+ # the set does not contain the object.
85
+ #
86
+ # @return [Boolean]
87
+ #
88
+ # @version SketchUp 6.0
89
+ def contains?(object)
90
+ end
91
+
92
+ # The delete object is used to delete or remove an object from the set.
93
+ #
94
+ # @example
95
+ # set = Sketchup::Set.new
96
+ # toolbar = UI::Toolbar.new "Test"
97
+ # set.insert toolbar
98
+ # if (set.include? toolbar)
99
+ # UI.messagebox "Success: Contains Toolbar Object"
100
+ # else
101
+ # UI.messagebox "Failure"
102
+ # end
103
+ # set.delete toolbar
104
+ # if (set.include? toolbar)
105
+ # UI.messagebox set
106
+ # else
107
+ # UI.messagebox "Set is empty"
108
+ # end
109
+ #
110
+ # @param object
111
+ # The object to be deleted.
112
+ #
113
+ # @return object - the object that was deleted.
114
+ #
115
+ # @version SketchUp 6.0
116
+ def delete(object)
117
+ end
118
+
119
+ # The each method is used to iterate through all of the objects in the set.
120
+ #
121
+ # @example
122
+ # set = Sketchup::Set.new
123
+ # toolbar = UI::Toolbar.new "Test"
124
+ # set.insert toolbar
125
+ # set.each { | item | UI.messagebox item }
126
+ #
127
+ # @version SketchUp 6.0
128
+ #
129
+ # @yield [item]
130
+ def each
131
+ end
132
+
133
+ # The empty? method is used to determine whether the set is empty.
134
+ #
135
+ # @example
136
+ # set = Sketchup::Set.new
137
+ # toolbar = UI::Toolbar.new "Test"
138
+ # set.insert toolbar
139
+ # status = set.empty?
140
+ # if (status)
141
+ # UI.messagebox "Success: Set is Empty"
142
+ # else
143
+ # UI.messagebox "Failure: Set has an Item"
144
+ # end
145
+ #
146
+ # @return status - true if the set is empty, false if it is not
147
+ # empty.
148
+ #
149
+ # @return [Boolean]
150
+ #
151
+ # @version SketchUp 6.0
152
+ def empty?
153
+ end
154
+
155
+ # The contains? method is an alias for include?. See also Set.include?
156
+ #
157
+ # @example
158
+ # set = Sketchup::Set.new
159
+ # toolbar = UI::Toolbar.new "Test"
160
+ # set.insert toolbar
161
+ # if (set.contains? toolbar)
162
+ # UI.messagebox "Success: Contains Toolbar Object"
163
+ # else
164
+ # UI.messagebox "Failure"
165
+ # end
166
+ #
167
+ # @param object
168
+ # A Ruby object of any type.
169
+ #
170
+ # @return status - true if the set contains the object, false if
171
+ # the set does not contain the object.
172
+ #
173
+ # @return [Boolean]
174
+ #
175
+ # @version SketchUp 6.0
176
+ def include?(object)
177
+ end
178
+
179
+ # The insert method is used to insert an object into the set.
180
+ #
181
+ # @example
182
+ # set = Sketchup::Set.new
183
+ # toolbar = UI::Toolbar.new "Test"
184
+ # set.insert toolbar
185
+ # if (set.include? toolbar)
186
+ # UI.messagebox "Success: Contains Toolbar Object"
187
+ # else
188
+ # UI.messagebox "Failure"
189
+ # end
190
+ #
191
+ # @param object
192
+ # The object to be inserted into the set.
193
+ #
194
+ # @return size - the number of objects in the set
195
+ #
196
+ # @version SketchUp 6.0
197
+ def insert(object)
198
+ end
199
+
200
+ # The length method is an alias for size. See also Set.size.
201
+ #
202
+ # @example
203
+ # set = Sketchup::Set.new
204
+ # toolbar = UI::Toolbar.new "Test"
205
+ # set.insert toolbar
206
+ # length = set.length
207
+ # if (length)
208
+ # UI.messagebox length
209
+ # else
210
+ # UI.messagebox "Failure"
211
+ # end
212
+ #
213
+ # @return length - the length (number of objects) in the set
214
+ #
215
+ # @version SketchUp 6.0
216
+ def length
217
+ end
218
+
219
+ # The length method is an alias for size. See also Set.size.
220
+ #
221
+ # @example
222
+ # set = Sketchup::Set.new
223
+ # toolbar = UI::Toolbar.new "Test"
224
+ # set.insert toolbar
225
+ # length = set.length
226
+ # if (length)
227
+ # UI.messagebox length
228
+ # else
229
+ # UI.messagebox "Failure"
230
+ # end
231
+ #
232
+ # @return length - the length (number of objects) in the set
233
+ #
234
+ # @version SketchUp 6.0
235
+ def size
236
+ end
237
+
238
+ # The to_a method is used to get an Array of the entities in your Set.
239
+ #
240
+ # @example
241
+ # set = Sketchup::Set.new
242
+ # set.insert('Hello')
243
+ # set.insert('World')
244
+ # my_array = set.to_a
245
+ # UI.messagebox my_array
246
+ #
247
+ # @return array - The Array of the entities in the Set.
248
+ #
249
+ # @version SketchUp 6.0
250
+ def to_a
251
+ end
252
+
253
+ end
@@ -0,0 +1,257 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The ShadowInfo class contains method to extract the shadow information for a
5
+ # model. The majority of the shadow information returned exists in the Model
6
+ # Info > Location and Model Info > Shadows dialogs inside SketchUp.
7
+ #
8
+ # The following shadow information keys are maintained in SketchUp:
9
+ #
10
+ # - +City+ (in Model Info > Geo-location > Set Manual Location...) Note that 'City' is called 'Location' in the UI
11
+ # - +Country+ (in Model Info > Geo-location > Set Manual Location...)
12
+ # - +Dark+ (in Window > Shadows)
13
+ # - +DayOfYear+
14
+ # - +DaylightSavings+
15
+ # - +DisplayNorth+ (in View > Toolbars > Solar North) Note that 'Toolbar' is called 'Tool Palettes' on Mac
16
+ # - +DisplayOnAllFaces+ (in Window > Shadows)
17
+ # - +DisplayOnGroundPlane+ (in Window > Shadows)
18
+ # - +DisplayShadows+ (in Window > Shadows)
19
+ # - +EdgesCastShadows+ (in Window > Shadows)
20
+ # - +Latitude+ (in Model Info > Geo-location > Set Manual Location...)
21
+ # - +Light+ (in Window > Shadows)
22
+ # - +Longitude+ (in Model Info > Geo-location > Set Manual Location...)
23
+ # - +North+ Angle (in View > Toolbars > Solar North) Note that 'Toolbar' is called 'Tool Palettes' on Mac
24
+ # - +ShadowTime+ (in Window > Shadows)
25
+ # - +ShadowTime_time_t+ (ShadowTime in Epoch time)
26
+ # - +SunDirection+ (Generated based on ShadowTime)
27
+ # - +SunRise+ (Generated based on ShadowTime)
28
+ # - +SunRise_time_t+ (SunRise in Epoch time)
29
+ # - +SunSet+ (Generated based on ShadowTime)
30
+ # - +SunSet_time_t+ (SunSet in Epoch time)
31
+ # - +TZOffset+ (in Window > Shadows)
32
+ # - +UseSunForAllShading+ (in Window > Shadows)
33
+ #
34
+ # You access the ShadowInfo object by calling Model.shadow_info:
35
+ #
36
+ # @example
37
+ # model = Sketchup.active_model
38
+ # shadowinfo = model.shadow_info
39
+ # UI.messagebox("My city is: " + shadowinfo["City"].to_s)
40
+ #
41
+ # @version SketchUp 6.0
42
+ class Sketchup::ShadowInfo < Sketchup::Entity
43
+
44
+ # Includes
45
+
46
+ include Enumerable
47
+
48
+ # Class Methods
49
+
50
+ # The each_key method iterates through all of the shadow information keys.
51
+ #
52
+ # @example
53
+ # shadowinfo.each_key { |key| UI.messagebox(key) }
54
+ #
55
+ # @return nil
56
+ #
57
+ # @version SketchUp 6.0
58
+ #
59
+ # @yield [key] Variable to hold each key as they are found.
60
+ def self.each_key
61
+ end
62
+
63
+ # The keys method is a class method that returns an array with all of the
64
+ # attribute keys
65
+ #
66
+ # @example
67
+ # keys = Sketchup::ShadowInfo.keys
68
+ #
69
+ # @return keys - an array of keys
70
+ #
71
+ # @version SketchUp 6.0
72
+ def self.keys
73
+ end
74
+
75
+ # Instance Methods
76
+
77
+ # The [] method retrieves a value from the array of keys
78
+ #
79
+ # @example
80
+ # value = shadowinfo["key"]
81
+ #
82
+ # @param key
83
+ # The key of the shadowinfo value to retrieve.
84
+ #
85
+ # @return value - the value that is retrieved.
86
+ #
87
+ # @version SketchUp 6.0
88
+ def [](key)
89
+ end
90
+
91
+ # The set value []= method is used to set the value in the array of shadow
92
+ # info options.
93
+ #
94
+ # @example
95
+ # model = Sketchup.active_model
96
+ # shadowinfo = model.shadow_info
97
+ # value = shadowinfo["City"]
98
+ # UI.messagebox value
99
+ # value = shadowinfo["City"]="Denver, CO"
100
+ # UI.messagebox value
101
+ #
102
+ # @param key
103
+ # The key of the shadowinfo value to set.
104
+ #
105
+ # @param value
106
+ # The value to be set.
107
+ #
108
+ # @return value - the value that was set if successful, or false
109
+ # if unsuccessful.
110
+ #
111
+ # @version SketchUp 6.0
112
+ def []=(key, value)
113
+ end
114
+
115
+ # The add_observer method is used to add an observer to the current object.
116
+ #
117
+ # @example
118
+ # status = object.add_observer observer
119
+ #
120
+ # @param observer
121
+ # An observer.
122
+ #
123
+ # @return true if successful, false if unsuccessful.
124
+ #
125
+ # @version SketchUp 6.0
126
+ def add_observer(observer)
127
+ end
128
+
129
+ # The count method is inherited from the Enumerable mix-in module.
130
+ #
131
+ # @example
132
+ # shadow_info = Sketchup.active_model.shadow_info
133
+ # number = shadow_info.count
134
+ #
135
+ # @return integer
136
+ #
137
+ # @version SketchUp 2014
138
+ def count
139
+ end
140
+
141
+ # An alias for each. See ShadowInfo.each.
142
+ #
143
+ # @example
144
+ # model = Sketchup.active_model
145
+ # shadowinfo = model.shadow_info
146
+ # shadowinfo.each_pair { |key, value|
147
+ # UI.messagebox(key.to_s + '=' + value.to_s)
148
+ # }
149
+ #
150
+ # @return nil
151
+ #
152
+ # @version SketchUp 6.0
153
+ #
154
+ # @yield [key, value]
155
+ #
156
+ # @yieldparam key
157
+ # A variables that will hold each key as it is found.
158
+ #
159
+ # @yieldparam value
160
+ # A variables that will hold each value as it is found.
161
+ def each
162
+ end
163
+
164
+ # The each_key method iterates through all of the shadow information keys.
165
+ #
166
+ # @example
167
+ # shadowinfo.each_key { |key| UI.messagebox(key) }
168
+ #
169
+ # @return nil
170
+ #
171
+ # @version SketchUp 6.0
172
+ #
173
+ # @yield [key] Variable to hold each key as they are found.
174
+ def each_key
175
+ end
176
+
177
+ # An alias for each. See ShadowInfo.each.
178
+ #
179
+ # @example
180
+ # model = Sketchup.active_model
181
+ # shadowinfo = model.shadow_info
182
+ # shadowinfo.each_pair { |key, value|
183
+ # UI.messagebox(key.to_s + '=' + value.to_s)
184
+ # }
185
+ #
186
+ # @return nil
187
+ #
188
+ # @version SketchUp 6.0
189
+ #
190
+ # @yield [key, value]
191
+ #
192
+ # @yieldparam key
193
+ # A variables that will hold each key as it is found.
194
+ #
195
+ # @yieldparam value
196
+ # A variables that will hold each value as it is found.
197
+ def each_pair
198
+ end
199
+
200
+ # The keys method is a class method that returns an array with all of the
201
+ # attribute keys
202
+ #
203
+ # @example
204
+ # keys = Sketchup::ShadowInfo.keys
205
+ #
206
+ # @return keys - an array of keys
207
+ #
208
+ # @version SketchUp 6.0
209
+ def keys
210
+ end
211
+
212
+ # The {#length} method returns the number of options in the shadow options
213
+ # collection
214
+ #
215
+ # The {#size} method is an alias for {#length}.
216
+ #
217
+ # @example
218
+ # shadow_info = Sketchup.active_model.shadow_info
219
+ # number = shadow_info.length
220
+ #
221
+ # @return integer
222
+ #
223
+ # @version SketchUp 2014
224
+ def length
225
+ end
226
+
227
+ # The remove_observer method is used to remove an observer from the current
228
+ # object.
229
+ #
230
+ # @example
231
+ # status = object.remove_observer observer
232
+ #
233
+ # @param observer
234
+ # An observer.
235
+ #
236
+ # @return true if successful, false if unsuccessful.
237
+ #
238
+ # @version SketchUp 6.0
239
+ def remove_observer(observer)
240
+ end
241
+
242
+ # The {#length} method returns the number of options in the shadow options
243
+ # collection
244
+ #
245
+ # The {#size} method is an alias for {#length}.
246
+ #
247
+ # @example
248
+ # shadow_info = Sketchup.active_model.shadow_info
249
+ # number = shadow_info.length
250
+ #
251
+ # @return integer
252
+ #
253
+ # @version SketchUp 2014
254
+ def size
255
+ end
256
+
257
+ end