sketchup-api-stubs 0.1.2 → 0.2.0

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 (92) hide show
  1. checksums.yaml +4 -4
  2. data/SketchUp/Geom/BoundingBox.rb +17 -20
  3. data/SketchUp/Geom/Bounds2d.rb +172 -0
  4. data/SketchUp/Geom/LatLong.rb +31 -16
  5. data/SketchUp/Geom/OrientedBounds2d.rb +102 -0
  6. data/SketchUp/Geom/Point2d.rb +365 -0
  7. data/SketchUp/Geom/Point3d.rb +121 -110
  8. data/SketchUp/Geom/PolygonMesh.rb +30 -21
  9. data/SketchUp/Geom/Transformation.rb +8 -4
  10. data/SketchUp/Geom/Transformation2d.rb +125 -0
  11. data/SketchUp/Geom/UTM.rb +43 -37
  12. data/SketchUp/Geom/Vector2d.rb +497 -0
  13. data/SketchUp/Geom/Vector3d.rb +143 -131
  14. data/SketchUp/Layout.rb +25 -0
  15. data/SketchUp/Layout/AngularDimension.rb +569 -0
  16. data/SketchUp/Layout/AutoTextDefinition.rb +417 -0
  17. data/SketchUp/Layout/AutoTextDefinitions.rb +186 -0
  18. data/SketchUp/Layout/ConnectionPoint.rb +70 -0
  19. data/SketchUp/Layout/Document.rb +458 -0
  20. data/SketchUp/Layout/Ellipse.rb +29 -0
  21. data/SketchUp/Layout/Entities.rb +155 -0
  22. data/SketchUp/Layout/Entity.rb +363 -0
  23. data/SketchUp/Layout/FormattedText.rb +349 -0
  24. data/SketchUp/Layout/Grid.rb +131 -0
  25. data/SketchUp/Layout/Group.rb +261 -0
  26. data/SketchUp/Layout/Image.rb +86 -0
  27. data/SketchUp/Layout/Label.rb +371 -0
  28. data/SketchUp/Layout/Layer.rb +222 -0
  29. data/SketchUp/Layout/LayerInstance.rb +128 -0
  30. data/SketchUp/Layout/Layers.rb +232 -0
  31. data/SketchUp/Layout/LinearDimension.rb +563 -0
  32. data/SketchUp/Layout/LockedEntityError.rb +10 -0
  33. data/SketchUp/Layout/LockedLayerError.rb +11 -0
  34. data/SketchUp/Layout/Page.rb +187 -0
  35. data/SketchUp/Layout/PageInfo.rb +393 -0
  36. data/SketchUp/Layout/Pages.rb +216 -0
  37. data/SketchUp/Layout/Path.rb +326 -0
  38. data/SketchUp/Layout/Rectangle.rb +174 -0
  39. data/SketchUp/Layout/SketchUpModel.rb +522 -0
  40. data/SketchUp/Layout/Style.rb +1520 -0
  41. data/SketchUp/Layout/Table.rb +290 -0
  42. data/SketchUp/Layout/TableCell.rb +149 -0
  43. data/SketchUp/Layout/TableColumn.rb +139 -0
  44. data/SketchUp/Layout/TableRow.rb +135 -0
  45. data/SketchUp/Sketchup/Animation.rb +7 -4
  46. data/SketchUp/Sketchup/ArcCurve.rb +10 -10
  47. data/SketchUp/Sketchup/AttributeDictionaries.rb +13 -4
  48. data/SketchUp/Sketchup/AttributeDictionary.rb +12 -12
  49. data/SketchUp/Sketchup/Color.rb +68 -78
  50. data/SketchUp/Sketchup/ComponentDefinition.rb +60 -60
  51. data/SketchUp/Sketchup/ComponentInstance.rb +57 -55
  52. data/SketchUp/Sketchup/DefinitionList.rb +34 -17
  53. data/SketchUp/Sketchup/Drawingelement.rb +19 -21
  54. data/SketchUp/Sketchup/Edge.rb +22 -24
  55. data/SketchUp/Sketchup/Entities.rb +173 -162
  56. data/SketchUp/Sketchup/Entity.rb +71 -55
  57. data/SketchUp/Sketchup/Face.rb +45 -44
  58. data/SketchUp/Sketchup/Group.rb +47 -49
  59. data/SketchUp/Sketchup/Image.rb +16 -0
  60. data/SketchUp/Sketchup/ImageRep.rb +226 -0
  61. data/SketchUp/Sketchup/InstancePath.rb +13 -13
  62. data/SketchUp/Sketchup/Layer.rb +15 -17
  63. data/SketchUp/Sketchup/Material.rb +40 -30
  64. data/SketchUp/Sketchup/Materials.rb +40 -22
  65. data/SketchUp/Sketchup/Menu.rb +5 -5
  66. data/SketchUp/Sketchup/Model.rb +230 -228
  67. data/SketchUp/Sketchup/Page.rb +32 -0
  68. data/SketchUp/Sketchup/Pages.rb +3 -4
  69. data/SketchUp/Sketchup/RenderingOptions.rb +21 -16
  70. data/SketchUp/Sketchup/SectionPlane.rb +64 -0
  71. data/SketchUp/Sketchup/Selection.rb +20 -28
  72. data/SketchUp/Sketchup/ShadowInfo.rb +14 -14
  73. data/SketchUp/Sketchup/Text.rb +24 -26
  74. data/SketchUp/Sketchup/Texture.rb +28 -12
  75. data/SketchUp/Sketchup/Vertex.rb +14 -11
  76. data/SketchUp/Sketchup/View.rb +126 -116
  77. data/SketchUp/UI/Command.rb +17 -17
  78. data/SketchUp/UI/HtmlDialog.rb +8 -5
  79. data/SketchUp/UI/Notification.rb +1 -1
  80. data/SketchUp/UI/Toolbar.rb +13 -14
  81. data/SketchUp/UI/WebDialog.rb +55 -59
  82. data/SketchUp/_top_level.rb +139 -27
  83. data/SketchUp/{Array.rb → array.rb} +167 -30
  84. data/SketchUp/{Geom.rb → geom.rb} +9 -7
  85. data/SketchUp/{LanguageHandler.rb → languagehandler.rb} +15 -15
  86. data/SketchUp/{Length.rb → length.rb} +15 -15
  87. data/SketchUp/{Numeric.rb → numeric.rb} +19 -19
  88. data/SketchUp/sketchup.rb +167 -156
  89. data/SketchUp/{SketchupExtension.rb → sketchupextension.rb} +27 -27
  90. data/SketchUp/{String.rb → string.rb} +1 -1
  91. data/SketchUp/ui.rb +113 -87
  92. metadata +46 -9
@@ -49,11 +49,11 @@ class UI::Command
49
49
  # cmd = UI::Command.new("Tester") { UI.messagebox("Hello World") }
50
50
  # testmenu.add_item cmd
51
51
  #
52
- # @param menutext
52
+ # @param [String] menutext
53
53
  # The text that will appear for this command's menu item
54
54
  # if it appears on a menu.
55
55
  #
56
- # @return command - the new Command object
56
+ # @return [UI::Command] the new Command object
57
57
  #
58
58
  # @version SketchUp 6.0
59
59
  #
@@ -77,7 +77,7 @@ class UI::Command
77
77
  # toolbar.show
78
78
  # puts cmd.large_icon
79
79
  #
80
- # @return string - the path to the large icon.
80
+ # @return [String] the path to the large icon.
81
81
  #
82
82
  # @version SketchUp 8.0 M1
83
83
  def large_icon
@@ -101,10 +101,10 @@ class UI::Command
101
101
  # toolbar = toolbar.add_item cmd
102
102
  # toolbar.show
103
103
  #
104
- # @param path
104
+ # @param [String] path
105
105
  # The path to the large icon.
106
106
  #
107
- # @return command - the Command object
107
+ # @return [String]
108
108
  #
109
109
  # @version SketchUp 6.0
110
110
  def large_icon=(path)
@@ -121,7 +121,7 @@ class UI::Command
121
121
  # testmenu.add_item cmd
122
122
  # puts cmd.menu_text
123
123
  #
124
- # @return command - a Command object
124
+ # @return [String]
125
125
  #
126
126
  # @version SketchUp 8.0 M1
127
127
  def menu_text
@@ -137,10 +137,10 @@ class UI::Command
137
137
  # cmd.menu_text = "New String"
138
138
  # testmenu.add_item cmd
139
139
  #
140
- # @param menuitem
140
+ # @param [String] menuitem
141
141
  # A string representing the menu item for the command.
142
142
  #
143
- # @return command - a Command object
143
+ # @return [String]
144
144
  #
145
145
  # @version SketchUp 6.0
146
146
  def menu_text=(menuitem)
@@ -189,7 +189,7 @@ class UI::Command
189
189
  # toolbar.show
190
190
  # puts cmd.small_icon
191
191
  #
192
- # @return string - the path to the small_icon
192
+ # @return [String] the path to the small_icon
193
193
  #
194
194
  # @version SketchUp 8.0 M1
195
195
  def small_icon
@@ -213,10 +213,10 @@ class UI::Command
213
213
  # toolbar = toolbar.add_item cmd
214
214
  # toolbar.show
215
215
  #
216
- # @param path
216
+ # @param [String] path
217
217
  # A path to the small icon.
218
218
  #
219
- # @return command - the Command object
219
+ # @return [String]
220
220
  #
221
221
  # @version SketchUp 6.0
222
222
  def small_icon=(path)
@@ -237,7 +237,7 @@ class UI::Command
237
237
  # toolbar.show
238
238
  # puts cmd.status_bar_text
239
239
  #
240
- # @return string - the status bar text.
240
+ # @return [String] the status bar text.
241
241
  #
242
242
  # @version SketchUp 8.0 M1
243
243
  def status_bar_text
@@ -256,11 +256,11 @@ class UI::Command
256
256
  # toolbar = toolbar.add_item cmd
257
257
  # toolbar.show
258
258
  #
259
- # @param text
259
+ # @param [String] text
260
260
  # The text that will appear on the status bar when the
261
261
  # cursor is over the command's menu item.
262
262
  #
263
- # @return command - the Command object
263
+ # @return [String]
264
264
  #
265
265
  # @version SketchUp 6.0
266
266
  def status_bar_text=(text)
@@ -277,7 +277,7 @@ class UI::Command
277
277
  # toolbar.show
278
278
  # puts cmd.tooltip
279
279
  #
280
- # @return string - the tooltip text
280
+ # @return [String] the tooltip text
281
281
  #
282
282
  # @version SketchUp 8.0 M1
283
283
  def tooltip
@@ -295,10 +295,10 @@ class UI::Command
295
295
  # toolbar = toolbar.add_item cmd
296
296
  # toolbar.show
297
297
  #
298
- # @param text
298
+ # @param [String] text
299
299
  # The text of the tooltip.
300
300
  #
301
- # @return command - the Command object
301
+ # @return [String]
302
302
  #
303
303
  # @version SketchUp 6.0
304
304
  def tooltip=(text)
@@ -33,6 +33,9 @@ class UI::HtmlDialog
33
33
  # Basic types such as booleans, numbers, strings, arrays and hashes are
34
34
  # automatically converted between Ruby and JavaScript.
35
35
  #
36
+ # @example JavaScript
37
+ # sketchup.say('Hello World', 42);
38
+ #
36
39
  # @example JavaScript with callback
37
40
  # sketchup.say('Hello World', 42, {
38
41
  # onCompleted: function() {
@@ -45,8 +48,8 @@ class UI::HtmlDialog
45
48
  # puts "JavaScript said #{param1} and #{param2}"
46
49
  # }
47
50
  #
48
- # @example JavaScript
49
- # sketchup.say('Hello World', 42);
51
+ # @note When an HtmlDialog is closed, all callbacks to that instance are
52
+ # cleared. Re-attach them if you need to open the dialog again.
50
53
  #
51
54
  # @param [String] callback_name
52
55
  # The name of the callback method to be
@@ -59,11 +62,11 @@ class UI::HtmlDialog
59
62
  #
60
63
  # @yield [action_context, ...]
61
64
  #
62
- # @yieldparam [Object] action_context
63
- # action_context Currently unused.
64
- #
65
65
  # @yieldparam [Object] ...
66
66
  # The parameters sent from JavaScript.
67
+ #
68
+ # @yieldparam [Object] action_context
69
+ # action_context Currently unused.
67
70
  def add_action_callback(callback_name)
68
71
  end
69
72
 
@@ -104,7 +104,7 @@ class UI::Notification
104
104
  #
105
105
  # @example
106
106
  # notification = UI::Notification.new(sketchup_extension)
107
- # puts "This is the current message: ${notification.message}"
107
+ # puts "This is the current message: #{notification.message}"
108
108
  # notification.show
109
109
  #
110
110
  # @return [String]
@@ -36,10 +36,10 @@ class UI::Toolbar
36
36
  # @example
37
37
  # toolbar = UI::Toolbar.new "Test"
38
38
  #
39
- # @param toolbarname
39
+ # @param [String] toolbarname
40
40
  # The name for the new toolbar.
41
41
  #
42
- # @return toolbar - the newly created toolbar object
42
+ # @return [UI::Toolbar] the newly created toolbar object
43
43
  #
44
44
  # @version SketchUp 6.0
45
45
  def self.new(toolbarname)
@@ -52,11 +52,11 @@ class UI::Toolbar
52
52
  # @example
53
53
  # toolbar = toolbar.add_item command
54
54
  #
55
- # @param command
55
+ # @param [UI::Command] command
56
56
  # A Command object representing the command to add to the
57
57
  # toolbar.
58
58
  #
59
- # @return toolbar - the toolbar where the command was just added
59
+ # @return [UI::Toolbar] the toolbar where the command was just added
60
60
  #
61
61
  # @version SketchUp 6.0
62
62
  def add_item(command)
@@ -67,11 +67,10 @@ class UI::Toolbar
67
67
  # @example
68
68
  # toolbar = toolbar.add_separator
69
69
  #
70
- # @return toolbar - the toolbar where the line separator was just
71
- # added
70
+ # @return [UI::Toolbar] the toolbar where the line separator was just added
72
71
  #
73
72
  # @version SketchUp 6.0
74
- def add_separator
73
+ def add_separator(arg)
75
74
  end
76
75
 
77
76
  # The {#count} method is inherited from the +Enumerable+ mix-in module.
@@ -101,7 +100,7 @@ class UI::Toolbar
101
100
  # puts item
102
101
  # }
103
102
  #
104
- # @return nil
103
+ # @return [nil]
105
104
  #
106
105
  # @version SketchUp 8.0 M1
107
106
  #
@@ -118,7 +117,7 @@ class UI::Toolbar
118
117
  # @example
119
118
  # state = toolbar.get_last_state
120
119
  #
121
- # @return state - the last state of the toolbar (see comments)
120
+ # @return [Boolean] the last state of the toolbar (see comments)
122
121
  #
123
122
  # @version SketchUp 6.0
124
123
  def get_last_state
@@ -143,7 +142,7 @@ class UI::Toolbar
143
142
  # toolbar.hide
144
143
  # UI.messagebox "Toolbar Hidden"
145
144
  #
146
- # @return nil
145
+ # @return [nil]
147
146
  #
148
147
  # @version SketchUp 6.0
149
148
  def hide
@@ -174,7 +173,7 @@ class UI::Toolbar
174
173
  # puts toolbar.name
175
174
  # toolbar.show
176
175
  #
177
- # @return string - the name of the toolbar.
176
+ # @return [String] the name of the toolbar.
178
177
  #
179
178
  # @version SketchUp 8.0 M1
180
179
  def name
@@ -186,7 +185,7 @@ class UI::Toolbar
186
185
  # @example
187
186
  # toolbar.restore
188
187
  #
189
- # @return nil
188
+ # @return [nil]
190
189
  #
191
190
  # @version SketchUp 6.0
192
191
  def restore
@@ -208,7 +207,7 @@ class UI::Toolbar
208
207
  # toolbar = toolbar.add_item cmd
209
208
  # toolbar.show
210
209
  #
211
- # @return nil
210
+ # @return [nil]
212
211
  #
213
212
  # @version SketchUp 6.0
214
213
  def show
@@ -232,7 +231,7 @@ class UI::Toolbar
232
231
  # @example
233
232
  # visible = toolbar.visible?
234
233
  #
235
- # @return true if visible
234
+ # @return [Boolean]
236
235
  #
237
236
  # @return [Boolean]
238
237
  #
@@ -93,11 +93,11 @@ class UI::WebDialog
93
93
  # @example
94
94
  # dialog.allow_actions_from_host("sketchup.com")
95
95
  #
96
- # @param hostname
96
+ # @param [String] hostname
97
97
  # The name (domain) of the host that your webdialog can
98
98
  # access safely.
99
99
  #
100
- # @return nil
100
+ # @return [Boolean]
101
101
  #
102
102
  # @version SketchUp 6.0
103
103
  def allow_actions_from_host(hostname)
@@ -110,7 +110,7 @@ class UI::WebDialog
110
110
  # @example
111
111
  # dialog.bring_to_front
112
112
  #
113
- # @return nil
113
+ # @return [UI::WebDialog]
114
114
  #
115
115
  # @version SketchUp 6.0
116
116
  def bring_to_front
@@ -121,7 +121,7 @@ class UI::WebDialog
121
121
  # @example
122
122
  # dialog.close
123
123
  #
124
- # @return nil
124
+ # @return [nil]
125
125
  #
126
126
  # @version SketchUp 6.0
127
127
  def close
@@ -134,10 +134,10 @@ class UI::WebDialog
134
134
  # js_command = "document.getElementById('id').innerHTML = '<b>Hi!</b>'"
135
135
  # dialog.execute_script(js_command)
136
136
  #
137
- # @param script
137
+ # @param [String] script
138
138
  # The JavaScript script to execute on the webdialog.
139
139
  #
140
- # @return nil
140
+ # @return [Boolean]
141
141
  #
142
142
  # @version SketchUp 6.0
143
143
  def execute_script(script)
@@ -150,8 +150,7 @@ class UI::WebDialog
150
150
  # dialog.get_default_dialog_color
151
151
  # #ece9d8
152
152
  #
153
- # @return color - a six digit hexidecimal number representing the
154
- # color
153
+ # @return [String] a six digit hexidecimal number representing the color
155
154
  #
156
155
  # @version SketchUp 6.0
157
156
  def get_default_dialog_color
@@ -167,10 +166,10 @@ class UI::WebDialog
167
166
  # # In webdialog's HTML:
168
167
  # <input type="text" id="myTextInput" value="hello">
169
168
  #
170
- # @param element_id
169
+ # @param [String] element_id
171
170
  # The name of the element in your HTML code.
172
171
  #
173
- # @return String containing the retrieved value.
172
+ # @return [String] a string containing the retrieved value.
174
173
  #
175
174
  # @version SketchUp 6.0
176
175
  def get_element_value(element_id)
@@ -240,7 +239,7 @@ class UI::WebDialog
240
239
  # @example
241
240
  # max = dialog.max_height
242
241
  #
243
- # @return height - the maximum height in pixels
242
+ # @return [Integer] the maximum height in pixels
244
243
  #
245
244
  # @version SketchUp 7.0
246
245
  def max_height
@@ -252,10 +251,10 @@ class UI::WebDialog
252
251
  # @example
253
252
  # dialog.max_height = 400
254
253
  #
255
- # @param height
254
+ # @param [Integer] height
256
255
  # The maximum height in pixels
257
256
  #
258
- # @return nil
257
+ # @return [Integer]
259
258
  #
260
259
  # @version SketchUp 7.0
261
260
  def max_height=(height)
@@ -267,7 +266,7 @@ class UI::WebDialog
267
266
  # @example
268
267
  # max = dialog.max_width
269
268
  #
270
- # @return width - the maximum width in pixels
269
+ # @return [Integer] the maximum width in pixels
271
270
  #
272
271
  # @version SketchUp 7.0
273
272
  def max_width
@@ -279,10 +278,10 @@ class UI::WebDialog
279
278
  # @example
280
279
  # dialog.max_width = 500
281
280
  #
282
- # @param width
281
+ # @param [Integer] width
283
282
  # The maximum width in pixels
284
283
  #
285
- # @return nil
284
+ # @return [Integer]
286
285
  #
287
286
  # @version SketchUp 7.0
288
287
  def max_width=(width)
@@ -294,7 +293,7 @@ class UI::WebDialog
294
293
  # @example
295
294
  # min = dialog.min_height
296
295
  #
297
- # @return height - the minimum height in pixels
296
+ # @return [Integer] the minimum height in pixels
298
297
  #
299
298
  # @version SketchUp 7.0
300
299
  def min_height
@@ -306,10 +305,10 @@ class UI::WebDialog
306
305
  # @example
307
306
  # dialog.min_height = 100
308
307
  #
309
- # @param height
308
+ # @param [Integer] height
310
309
  # The minimum height in pixels
311
310
  #
312
- # @return nil
311
+ # @return [Integer]
313
312
  #
314
313
  # @version SketchUp 7.0
315
314
  def min_height=(height)
@@ -321,7 +320,7 @@ class UI::WebDialog
321
320
  # @example
322
321
  # min = dialog.min_width
323
322
  #
324
- # @return width - the minimum width in pixels
323
+ # @return [Integer] the minimum width in pixels
325
324
  #
326
325
  # @version SketchUp 7.0
327
326
  def min_width
@@ -333,10 +332,10 @@ class UI::WebDialog
333
332
  # @example
334
333
  # dialog.min_width = 200
335
334
  #
336
- # @param width
335
+ # @param [Integer] width
337
336
  # The minimum width in pixels
338
337
  #
339
- # @return nil
338
+ # @return [Integer]
340
339
  #
341
340
  # @version SketchUp 7.0
342
341
  def min_width=(width)
@@ -349,10 +348,7 @@ class UI::WebDialog
349
348
  # @example
350
349
  # dialog.navigation_buttons_enabled = false
351
350
  #
352
- # @param nav_buttons
353
- # true to hide the buttons, false to show them
354
- #
355
- # @return dialog - the updated WebDialog
351
+ # @return [Boolean]
356
352
  #
357
353
  # @version SketchUp 7.0
358
354
  def navigation_buttons_enabled=(nav_buttons)
@@ -367,7 +363,7 @@ class UI::WebDialog
367
363
  # @example
368
364
  # nav_buttons = dialog.navigation_buttons_enabled?
369
365
  #
370
- # @return nav_buttons - true if the buttons are visible.
366
+ # @return [Boolean]
371
367
  #
372
368
  # @return [Boolean]
373
369
  #
@@ -381,13 +377,13 @@ class UI::WebDialog
381
377
  # @example
382
378
  # data = dialog.post_url("http://www.mydomain.com/formchecker.cgi",data)
383
379
  #
384
- # @param url
380
+ # @param [String] url
385
381
  # The url to send the data.
386
382
  #
387
- # @param data
383
+ # @param [String] data
388
384
  # The data to be sent.
389
385
  #
390
- # @return nil
386
+ # @return [nil]
391
387
  #
392
388
  # @version SketchUp 6.0
393
389
  def post_url(url, data)
@@ -401,7 +397,7 @@ class UI::WebDialog
401
397
  # @example
402
398
  # factor = dialog.screen_scale_factor
403
399
  #
404
- # @return screen scale factor
400
+ # @return [Float] screen scale factor
405
401
  #
406
402
  # @version SketchUp 2014
407
403
  def screen_scale_factor
@@ -413,10 +409,10 @@ class UI::WebDialog
413
409
  # @example
414
410
  # dlg.set_background_color("f3f0f0")
415
411
  #
416
- # @param color
412
+ # @param [String] color
417
413
  # A six digit hexidecimal color.
418
414
  #
419
- # @return nil
415
+ # @return [nil]
420
416
  #
421
417
  # @version SketchUp 6.0
422
418
  def set_background_color(color)
@@ -448,7 +444,7 @@ class UI::WebDialog
448
444
  # @example
449
445
  # dialog.set_full_security
450
446
  #
451
- # @return dialog - the updated WebDialog
447
+ # @return [UI::WebDialog] the updated WebDialog
452
448
  #
453
449
  # @version SketchUp 7.0
454
450
  def set_full_security
@@ -461,10 +457,10 @@ class UI::WebDialog
461
457
  # html= '<b>Hello world!</b>'
462
458
  # dialog.set_html(html)
463
459
  #
464
- # @param html_string
460
+ # @param [String] html_string
465
461
  # A string of valid html to display in your webdialog.
466
462
  #
467
- # @return nil
463
+ # @return [nil]
468
464
  #
469
465
  # @version SketchUp 6.0
470
466
  def set_html(html_string)
@@ -476,7 +472,7 @@ class UI::WebDialog
476
472
  # @example
477
473
  # dialog.set_on_close{ UI.messagebox("Closing the webDialog") }
478
474
  #
479
- # @return nil
475
+ # @return [nil]
480
476
  #
481
477
  # @version SketchUp 6.0
482
478
  #
@@ -490,13 +486,13 @@ class UI::WebDialog
490
486
  # @example
491
487
  # dialog.set_position(100,50)
492
488
  #
493
- # @param left
489
+ # @param [Integer] left
494
490
  # The number of pixels from the left.
495
491
  #
496
- # @param top
492
+ # @param [Integer] top
497
493
  # The number of pixels from the top of the screen.
498
494
  #
499
- # @return nil
495
+ # @return [nil]
500
496
  #
501
497
  # @version SketchUp 6.0
502
498
  def set_position(left, top)
@@ -507,13 +503,13 @@ class UI::WebDialog
507
503
  # @example
508
504
  # dialog.set_size(320,240)
509
505
  #
510
- # @param w
506
+ # @param [Integer] w
511
507
  # Width of the webdialog.
512
508
  #
513
- # @param h
509
+ # @param [Integer] h
514
510
  # Height of the webdialog.
515
511
  #
516
- # @return nil
512
+ # @return [nil]
517
513
  #
518
514
  # @version SketchUp 6.0
519
515
  def set_size(w, h)
@@ -525,10 +521,10 @@ class UI::WebDialog
525
521
  # @example
526
522
  # dialog.set_url "http://www.sketchup.com"
527
523
  #
528
- # @param url
524
+ # @param [String] url
529
525
  # The URL for a specific web site.
530
526
  #
531
- # @return nil
527
+ # @return [nil]
532
528
  #
533
529
  # @version SketchUp 6.0
534
530
  def set_url(url)
@@ -541,7 +537,7 @@ class UI::WebDialog
541
537
  # dialog.execute_script("alert(10)");
542
538
  # }
543
539
  #
544
- # @return nil
540
+ # @return [nil]
545
541
  #
546
542
  # @version SketchUp 6.0
547
543
  #
@@ -561,7 +557,7 @@ class UI::WebDialog
561
557
  # dialog.execute_script("alert(10)");
562
558
  # }
563
559
  #
564
- # @return nil
560
+ # @return [nil]
565
561
  #
566
562
  # @version SketchUp 6.0
567
563
  #
@@ -575,7 +571,7 @@ class UI::WebDialog
575
571
  # @example
576
572
  # vis = dialog.visible?
577
573
  #
578
- # @return visibility - true if visible.
574
+ # @return [Boolean]
579
575
  #
580
576
  # @return [Boolean]
581
577
  #
@@ -590,29 +586,29 @@ class UI::WebDialog
590
586
  # dialog.write_image('c:/grab.jpg', 70, 0, 0, 100, 100)
591
587
  # dialog.write_image('c:/grab.png', 4, 0, 0, 100, 100)
592
588
  #
593
- # @param option
589
+ # @param [Integer] top_left_x
590
+ # The x coordinate of the upper left corner of the
591
+ # region to grab.
592
+ #
593
+ # @param [String] image_path
594
+ # The destination path of the saved image.
595
+ #
596
+ # @param [Integer] option
594
597
  # Specifies what method to use when saving the image. For
595
598
  # JPG/JPEG images, this specifies the image quality and
596
599
  # can range from 1 to 100. For PNG images this specifies
597
600
  # the compression algorithm: <4 (best speed), 4-8
598
601
  # (default), or >=9 (best compression).
599
602
  #
600
- # @param image_path
601
- # The destination path of the saved image.
602
- #
603
- # @param bottom_right_y
603
+ # @param [Integer] bottom_right_y
604
604
  # The x coordinate of the lower right corner of the
605
605
  # region to grab.
606
606
  #
607
- # @param bottom_right_x
607
+ # @param [Integer] bottom_right_x
608
608
  # The x coordinate of the lower right corner of the
609
609
  # region to grab.
610
610
  #
611
- # @param top_left_y
612
- # The x coordinate of the upper left corner of the
613
- # region to grab.
614
- #
615
- # @param top_left_x
611
+ # @param [Integer] top_left_y
616
612
  # The x coordinate of the upper left corner of the
617
613
  # region to grab.
618
614
  #