sketchup-api-stubs 0.3.1 → 0.4.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 (148) hide show
  1. checksums.yaml +5 -5
  2. data/.yardopts +7 -7
  3. data/SketchUp/Geom/BoundingBox.rb +7 -15
  4. data/SketchUp/Geom/Bounds2d.rb +18 -18
  5. data/SketchUp/Geom/LatLong.rb +6 -6
  6. data/SketchUp/Geom/OrientedBounds2d.rb +1 -1
  7. data/SketchUp/Geom/Point2d.rb +42 -6
  8. data/SketchUp/Geom/Point3d.rb +32 -21
  9. data/SketchUp/Geom/PolygonMesh.rb +22 -17
  10. data/SketchUp/Geom/Transformation.rb +35 -35
  11. data/SketchUp/Geom/Transformation2d.rb +153 -13
  12. data/SketchUp/Geom/UTM.rb +1 -1
  13. data/SketchUp/Geom/Vector2d.rb +45 -9
  14. data/SketchUp/Geom/Vector3d.rb +11 -11
  15. data/SketchUp/Layout.rb +1 -1
  16. data/SketchUp/Layout/AngularDimension.rb +25 -25
  17. data/SketchUp/Layout/AutoTextDefinition.rb +5 -5
  18. data/SketchUp/Layout/AutoTextDefinitions.rb +1 -1
  19. data/SketchUp/Layout/ConnectionPoint.rb +1 -1
  20. data/SketchUp/Layout/Document.rb +6 -5
  21. data/SketchUp/Layout/Ellipse.rb +1 -1
  22. data/SketchUp/Layout/Entities.rb +1 -1
  23. data/SketchUp/Layout/Entity.rb +16 -16
  24. data/SketchUp/Layout/FormattedText.rb +21 -21
  25. data/SketchUp/Layout/Grid.rb +1 -1
  26. data/SketchUp/Layout/Group.rb +18 -18
  27. data/SketchUp/Layout/Image.rb +6 -6
  28. data/SketchUp/Layout/Label.rb +15 -15
  29. data/SketchUp/Layout/Layer.rb +5 -5
  30. data/SketchUp/Layout/LayerInstance.rb +3 -3
  31. data/SketchUp/Layout/Layers.rb +1 -1
  32. data/SketchUp/Layout/LinearDimension.rb +25 -25
  33. data/SketchUp/Layout/LockedEntityError.rb +1 -1
  34. data/SketchUp/Layout/LockedLayerError.rb +1 -1
  35. data/SketchUp/Layout/Page.rb +3 -3
  36. data/SketchUp/Layout/PageInfo.rb +1 -1
  37. data/SketchUp/Layout/Pages.rb +1 -1
  38. data/SketchUp/Layout/Path.rb +47 -27
  39. data/SketchUp/Layout/Rectangle.rb +8 -8
  40. data/SketchUp/Layout/SketchUpModel.rb +61 -26
  41. data/SketchUp/Layout/Style.rb +18 -17
  42. data/SketchUp/Layout/Table.rb +14 -14
  43. data/SketchUp/Layout/TableCell.rb +5 -5
  44. data/SketchUp/Layout/TableColumn.rb +7 -7
  45. data/SketchUp/Layout/TableRow.rb +7 -7
  46. data/SketchUp/Sketchup/Animation.rb +1 -1
  47. data/SketchUp/Sketchup/AppObserver.rb +1 -1
  48. data/SketchUp/Sketchup/ArcCurve.rb +1 -1
  49. data/SketchUp/Sketchup/AttributeDictionaries.rb +1 -1
  50. data/SketchUp/Sketchup/AttributeDictionary.rb +7 -7
  51. data/SketchUp/Sketchup/Axes.rb +4 -4
  52. data/SketchUp/Sketchup/Behavior.rb +1 -1
  53. data/SketchUp/Sketchup/Camera.rb +30 -41
  54. data/SketchUp/Sketchup/ClassificationSchema.rb +1 -1
  55. data/SketchUp/Sketchup/Classifications.rb +1 -1
  56. data/SketchUp/Sketchup/Color.rb +1 -1
  57. data/SketchUp/Sketchup/ComponentDefinition.rb +3 -3
  58. data/SketchUp/Sketchup/ComponentInstance.rb +10 -10
  59. data/SketchUp/Sketchup/Console.rb +5 -5
  60. data/SketchUp/Sketchup/ConstructionLine.rb +11 -11
  61. data/SketchUp/Sketchup/ConstructionPoint.rb +1 -1
  62. data/SketchUp/Sketchup/Curve.rb +1 -1
  63. data/SketchUp/Sketchup/DefinitionList.rb +12 -9
  64. data/SketchUp/Sketchup/DefinitionObserver.rb +6 -7
  65. data/SketchUp/Sketchup/DefinitionsObserver.rb +3 -3
  66. data/SketchUp/Sketchup/Dimension.rb +1 -1
  67. data/SketchUp/Sketchup/DimensionLinear.rb +81 -1
  68. data/SketchUp/Sketchup/DimensionObserver.rb +1 -1
  69. data/SketchUp/Sketchup/DimensionRadial.rb +1 -1
  70. data/SketchUp/Sketchup/Drawingelement.rb +1 -1
  71. data/SketchUp/Sketchup/Edge.rb +13 -16
  72. data/SketchUp/Sketchup/EdgeUse.rb +1 -1
  73. data/SketchUp/Sketchup/Entities.rb +181 -100
  74. data/SketchUp/Sketchup/EntitiesObserver.rb +1 -1
  75. data/SketchUp/Sketchup/Entity.rb +29 -26
  76. data/SketchUp/Sketchup/EntityObserver.rb +1 -1
  77. data/SketchUp/Sketchup/ExtensionsManager.rb +1 -1
  78. data/SketchUp/Sketchup/Face.rb +7 -7
  79. data/SketchUp/Sketchup/FrameChangeObserver.rb +4 -4
  80. data/SketchUp/Sketchup/Group.rb +1 -1
  81. data/SketchUp/Sketchup/Http.rb +1 -1
  82. data/SketchUp/Sketchup/Http/Request.rb +3 -3
  83. data/SketchUp/Sketchup/Http/Response.rb +1 -1
  84. data/SketchUp/Sketchup/Image.rb +1 -1
  85. data/SketchUp/Sketchup/ImageRep.rb +16 -16
  86. data/SketchUp/Sketchup/Importer.rb +1 -1
  87. data/SketchUp/Sketchup/InputPoint.rb +8 -4
  88. data/SketchUp/Sketchup/InstanceObserver.rb +1 -1
  89. data/SketchUp/Sketchup/InstancePath.rb +15 -12
  90. data/SketchUp/Sketchup/Layer.rb +27 -1
  91. data/SketchUp/Sketchup/Layers.rb +1 -1
  92. data/SketchUp/Sketchup/LayersObserver.rb +1 -1
  93. data/SketchUp/Sketchup/Licensing.rb +1 -1
  94. data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +1 -1
  95. data/SketchUp/Sketchup/LineStyle.rb +24 -0
  96. data/SketchUp/Sketchup/LineStyles.rb +123 -0
  97. data/SketchUp/Sketchup/Loop.rb +1 -1
  98. data/SketchUp/Sketchup/Material.rb +16 -10
  99. data/SketchUp/Sketchup/Materials.rb +9 -1
  100. data/SketchUp/Sketchup/MaterialsObserver.rb +3 -3
  101. data/SketchUp/Sketchup/Menu.rb +1 -1
  102. data/SketchUp/Sketchup/Model.rb +47 -21
  103. data/SketchUp/Sketchup/ModelObserver.rb +3 -3
  104. data/SketchUp/Sketchup/OptionsManager.rb +1 -1
  105. data/SketchUp/Sketchup/OptionsProvider.rb +5 -5
  106. data/SketchUp/Sketchup/OptionsProviderObserver.rb +1 -1
  107. data/SketchUp/Sketchup/Page.rb +1 -1
  108. data/SketchUp/Sketchup/Pages.rb +13 -8
  109. data/SketchUp/Sketchup/PagesObserver.rb +1 -1
  110. data/SketchUp/Sketchup/PickHelper.rb +49 -50
  111. data/SketchUp/Sketchup/RegionalSettings.rb +1 -1
  112. data/SketchUp/Sketchup/RenderingOptions.rb +4 -4
  113. data/SketchUp/Sketchup/RenderingOptionsObserver.rb +3 -3
  114. data/SketchUp/Sketchup/SectionPlane.rb +1 -1
  115. data/SketchUp/Sketchup/Selection.rb +3 -3
  116. data/SketchUp/Sketchup/SelectionObserver.rb +3 -3
  117. data/SketchUp/Sketchup/Set.rb +1 -1
  118. data/SketchUp/Sketchup/ShadowInfo.rb +3 -3
  119. data/SketchUp/Sketchup/ShadowInfoObserver.rb +1 -1
  120. data/SketchUp/Sketchup/Style.rb +1 -1
  121. data/SketchUp/Sketchup/Styles.rb +1 -1
  122. data/SketchUp/Sketchup/Text.rb +28 -1
  123. data/SketchUp/Sketchup/Texture.rb +1 -1
  124. data/SketchUp/Sketchup/TextureWriter.rb +13 -13
  125. data/SketchUp/Sketchup/Tool.rb +68 -64
  126. data/SketchUp/Sketchup/Tools.rb +13 -1
  127. data/SketchUp/Sketchup/ToolsObserver.rb +13 -13
  128. data/SketchUp/Sketchup/UVHelper.rb +1 -1
  129. data/SketchUp/Sketchup/Vertex.rb +1 -1
  130. data/SketchUp/Sketchup/View.rb +57 -56
  131. data/SketchUp/Sketchup/ViewObserver.rb +2 -2
  132. data/SketchUp/UI/Command.rb +4 -1
  133. data/SketchUp/UI/HtmlDialog.rb +23 -14
  134. data/SketchUp/UI/Notification.rb +10 -10
  135. data/SketchUp/UI/Toolbar.rb +1 -1
  136. data/SketchUp/UI/WebDialog.rb +38 -20
  137. data/SketchUp/_top_level.rb +32 -34
  138. data/SketchUp/array.rb +125 -112
  139. data/SketchUp/geom.rb +2 -2
  140. data/SketchUp/languagehandler.rb +1 -1
  141. data/SketchUp/length.rb +1 -1
  142. data/SketchUp/numeric.rb +3 -3
  143. data/SketchUp/sketchup.rb +11 -11
  144. data/SketchUp/sketchupextension.rb +6 -2
  145. data/SketchUp/string.rb +1 -1
  146. data/SketchUp/ui.rb +14 -14
  147. data/autoload/sketchup.rb +2 -0
  148. metadata +5 -3
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Texture class contains methods for obtaining information about textures
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The TextureWriter class is used primarily for writing the textures used in a
@@ -74,14 +74,14 @@ class Sketchup::TextureWriter
74
74
  # texture in the texture writer.
75
75
  #
76
76
  # @example
77
+ # tw.load(texturable_entities[0])
78
+ # handle = tw.handle(texturable_entities[0])
79
+ #
80
+ # @example
77
81
  # load_front_face = true
78
82
  # tw.load(faces[0], load_front_face)
79
83
  # handle = tw.handle(faces[0], load_front_face)
80
84
  #
81
- # @example
82
- # tw.load(texturable_entities[0])
83
- # handle = tw.handle(texturable_entities[0])
84
- #
85
85
  # @overload handle(entity)
86
86
  #
87
87
  # @param [Sketchup::Entity] entity A image, component instance, group, or
@@ -122,10 +122,10 @@ class Sketchup::TextureWriter
122
122
  # for writing out to a file.
123
123
  #
124
124
  # @example
125
- # index = tw.load(faces[0], true)
125
+ # index = tw.load(texturable_entities[0])
126
126
  #
127
127
  # @example
128
- # index = tw.load(texturable_entities[0])
128
+ # index = tw.load(faces[0], true)
129
129
  #
130
130
  # @note If you are passing a face in as the entity argument when loading a
131
131
  # texture you will have to specify the second boolean argument, side.
@@ -164,6 +164,12 @@ class Sketchup::TextureWriter
164
164
  # - 2 = FILE_WRITE_FAILED_UNKNOWN
165
165
  #
166
166
  # @example
167
+ # tw.load(texturable_entities[0])
168
+ # if tw.write(texturable_entities[0], "C:\\textures\\A.jpg") == FILE_WRITE_OK
169
+ # puts("JPEG file successfully written.")
170
+ # end
171
+ #
172
+ # @example
167
173
  # tw.load(faces[0], true)
168
174
  # if tw.write(faces[0], true, "C:\\textures\\Face.png") == FILE_WRITE_OK
169
175
  # puts("PNG file successfully written.")
@@ -175,12 +181,6 @@ class Sketchup::TextureWriter
175
181
  # puts("TIFF file successfully written.")
176
182
  # end
177
183
  #
178
- # @example
179
- # tw.load(texturable_entities[0])
180
- # if tw.write(texturable_entities[0], "C:\\textures\\A.jpg") == FILE_WRITE_OK
181
- # puts("JPEG file successfully written.")
182
- # end
183
- #
184
184
  # @note If you are passing a face in as the entity argument when writing a
185
185
  # texture you will have to specify the boolean argument, side. The argument
186
186
  # side controls the side of the face from which the texture will be sampled
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Tool is the interface that you implement to create a SketchUp tool.
@@ -101,10 +101,10 @@ class Sketchup::Tool
101
101
  #
102
102
  # @return nil
103
103
  #
104
- # @see Sketchup::View#draw
105
- #
106
104
  # @see getExtents
107
105
  #
106
+ # @see Sketchup::View#draw
107
+ #
108
108
  # @version SketchUp 6.0
109
109
  def draw(view)
110
110
  end
@@ -214,34 +214,34 @@ class Sketchup::Tool
214
214
  # end
215
215
  # end
216
216
  #
217
+ # @param menu
218
+ # A Menu object.
219
+ #
217
220
  # @param [optional] flags
218
221
  # A bit mask that tells the state of the
219
222
  # modifier keys and other mouse buttons at the time.
220
223
  # Added in SU2015.
221
224
  #
222
- # @param menu
223
- # A Menu object.
224
- #
225
225
  # @param [optional] x
226
226
  # The X coordinate on the screen where the
227
227
  # event occurred. Added in SU2015.
228
228
  #
229
- # @param [optional] view
230
- # A View object where the method was invoked.
231
- # Added in SU2015.
232
- #
233
229
  # @param [optional] y
234
230
  # The Y coordinate on the screen where the
235
231
  # event occurred. Added in SU2015.
236
232
  #
233
+ # @param [optional] view
234
+ # A View object where the method was invoked.
235
+ # Added in SU2015.
236
+ #
237
237
  # @return nil
238
238
  #
239
239
  # @version SketchUp 6.0
240
240
  def getMenu(menu, flags, x, y, view)
241
241
  end
242
242
 
243
- # The onCancel method is called by SketchUp to cancel the current operation of
244
- # the tool. The typical response will be to reset the tool to its initial
243
+ # The {#onCancel} method is called by SketchUp to cancel the current operation
244
+ # of the tool. The typical response will be to reset the tool to its initial
245
245
  # state.
246
246
  #
247
247
  # The reason identifies the action that triggered the call. The reason can be
@@ -256,13 +256,16 @@ class Sketchup::Tool
256
256
  # puts "MyTool was canceled for reason ##{reason} in view: #{view}"
257
257
  # end
258
258
  #
259
- # @param reason
259
+ # @note When something is undone {#onCancel} is called before the undo is
260
+ # actually executed. If you need to do something with the model after an undo
261
+ # use {Sketchup::ModelObserver#onTransactionUndo}.
262
+ #
263
+ # @param [Integer] reason
260
264
  # A reason value (see comments).
261
265
  #
262
- # @param view
263
- # A View object where the method was invoked.
266
+ # @param [Sketchup::View] view
264
267
  #
265
- # @return nil
268
+ # @return [nil]
266
269
  #
267
270
  # @version SketchUp 6.0
268
271
  def onCancel(reason, view)
@@ -315,13 +318,13 @@ class Sketchup::Tool
315
318
  # A value of 1 for a single press of a key. A value of 2
316
319
  # if the user has pressed a key and is holding it down.
317
320
  #
318
- # @param view
319
- # A View object where the method was invoked.
320
- #
321
321
  # @param flags
322
322
  # A bit mask that tells the state of the modifier keys at
323
323
  # the time of the onKeyDown.
324
324
  #
325
+ # @param view
326
+ # A View object where the method was invoked.
327
+ #
325
328
  # @return nil
326
329
  #
327
330
  # @version SketchUp 6.0
@@ -346,13 +349,13 @@ class Sketchup::Tool
346
349
  # A value of 1 for a single press of a key. A value of 2
347
350
  # if the user has pressed a key and is holding it down.
348
351
  #
349
- # @param view
350
- # A View object where the method was invoked.
351
- #
352
352
  # @param flags
353
353
  # A bit mask that tells the state of the modifier keys at
354
354
  # the time of the onKeyUp.
355
355
  #
356
+ # @param view
357
+ # A View object where the method was invoked.
358
+ #
356
359
  # @return nil
357
360
  #
358
361
  # @version SketchUp 6.0
@@ -377,12 +380,12 @@ class Sketchup::Tool
377
380
  # @param x
378
381
  # The X coordinate on the screen where the event occurred.
379
382
  #
380
- # @param view
381
- # A View object where the method was invoked.
382
- #
383
383
  # @param y
384
384
  # The Y coordinate on the screen where the event occurred.
385
385
  #
386
+ # @param view
387
+ # A View object where the method was invoked.
388
+ #
386
389
  # @return nil
387
390
  #
388
391
  # @version SketchUp 6.0
@@ -407,12 +410,12 @@ class Sketchup::Tool
407
410
  # @param x
408
411
  # The X coordinate on the screen where the event occurred.
409
412
  #
410
- # @param view
411
- # A View object where the method was invoked.
412
- #
413
413
  # @param y
414
414
  # The Y coordinate on the screen where the event occurred.
415
415
  #
416
+ # @param view
417
+ # A View object where the method was invoked.
418
+ #
416
419
  # @return nil
417
420
  #
418
421
  # @version SketchUp 6.0
@@ -437,12 +440,12 @@ class Sketchup::Tool
437
440
  # @param x
438
441
  # The X coordinate on the screen where the event occurred.
439
442
  #
440
- # @param view
441
- # A View object where the method was invoked.
442
- #
443
443
  # @param y
444
444
  # The Y coordinate on the screen where the event occurred.
445
445
  #
446
+ # @param view
447
+ # A View object where the method was invoked.
448
+ #
446
449
  # @return nil
447
450
  #
448
451
  # @version SketchUp 6.0
@@ -475,12 +478,12 @@ class Sketchup::Tool
475
478
  # @param x
476
479
  # The X coordinate on the screen where the event occurred.
477
480
  #
478
- # @param view
479
- # A View object where the method was invoked.
480
- #
481
481
  # @param y
482
482
  # The Y coordinate on the screen where the event occurred.
483
483
  #
484
+ # @param view
485
+ # A View object where the method was invoked.
486
+ #
484
487
  # @return nil
485
488
  #
486
489
  # @version SketchUp 6.0
@@ -509,12 +512,12 @@ class Sketchup::Tool
509
512
  # @param x
510
513
  # The X coordinate on the screen where the event occurred.
511
514
  #
512
- # @param view
513
- # A View object where the method was invoked.
514
- #
515
515
  # @param y
516
516
  # The Y coordinate on the screen where the event occurred.
517
517
  #
518
+ # @param view
519
+ # A View object where the method was invoked.
520
+ #
518
521
  # @return nil
519
522
  #
520
523
  # @version SketchUp 6.0
@@ -544,12 +547,12 @@ class Sketchup::Tool
544
547
  # @param x
545
548
  # The X coordinate on the screen where the event occurred.
546
549
  #
547
- # @param view
548
- # A View object where the method was invoked.
549
- #
550
550
  # @param y
551
551
  # The Y coordinate on the screen where the event occurred.
552
552
  #
553
+ # @param view
554
+ # A View object where the method was invoked.
555
+ #
553
556
  # @return nil
554
557
  #
555
558
  # @version SketchUp 6.0
@@ -611,12 +614,12 @@ class Sketchup::Tool
611
614
  # @param x
612
615
  # The X coordinate on the screen where the event occurred.
613
616
  #
614
- # @param view
615
- # A View object where the method was invoked.
616
- #
617
617
  # @param y
618
618
  # The Y coordinate on the screen where the event occurred.
619
619
  #
620
+ # @param view
621
+ # A View object where the method was invoked.
622
+ #
620
623
  # @return nil
621
624
  #
622
625
  # @version SketchUp 6.0
@@ -641,12 +644,12 @@ class Sketchup::Tool
641
644
  # @param x
642
645
  # The X coordinate on the screen where the event occurred.
643
646
  #
644
- # @param view
645
- # A View object where the method was invoked.
646
- #
647
647
  # @param y
648
648
  # The Y coordinate on the screen where the event occurred.
649
649
  #
650
+ # @param view
651
+ # A View object where the method was invoked.
652
+ #
650
653
  # @return nil
651
654
  #
652
655
  # @version SketchUp 6.0
@@ -673,12 +676,12 @@ class Sketchup::Tool
673
676
  # @param x
674
677
  # The X coordinate on the screen where the event occurred.
675
678
  #
676
- # @param view
677
- # A View object where the method was invoked.
678
- #
679
679
  # @param y
680
680
  # The Y coordinate on the screen where the event occurred.
681
681
  #
682
+ # @param view
683
+ # A View object where the method was invoked.
684
+ #
682
685
  # @return nil
683
686
  #
684
687
  # @version SketchUp 6.0
@@ -703,31 +706,30 @@ class Sketchup::Tool
703
706
  # @param x
704
707
  # The X coordinate on the screen where the event occurred.
705
708
  #
706
- # @param view
707
- # A View object where the method was invoked.
708
- #
709
709
  # @param y
710
710
  # The Y coordinate on the screen where the event occurred.
711
711
  #
712
+ # @param view
713
+ # A View object where the method was invoked.
714
+ #
712
715
  # @return nil
713
716
  #
714
717
  # @version SketchUp 6.0
715
718
  def onRButtonUp(flags, x, y, view)
716
719
  end
717
720
 
718
- # The onReturn method is called by SketchUp when the user hit the Return key
721
+ # The {#onReturn} method is called by SketchUp when the user hit the Return key
719
722
  # to complete an operation in the tool. This method will rarely need to be
720
723
  # implemented.
721
724
  #
722
725
  # @example
723
- # def onMouseLeave(view)
724
- # puts "onMouseLeave: view = #{view}"
726
+ # def onReturn(view)
727
+ # puts "onReturn(#{view})"
725
728
  # end
726
729
  #
727
- # @param view
728
- # A View object where the method was invoked.
730
+ # @param [Sketchup::View] view
729
731
  #
730
- # @return nil
732
+ # @return [nil]
731
733
  #
732
734
  # @version SketchUp 6.0
733
735
  def onReturn(view)
@@ -749,21 +751,23 @@ class Sketchup::Tool
749
751
  def onSetCursor
750
752
  end
751
753
 
752
- # The onUserText method is called by SketchUp when the user has typed text
754
+ # The {#onUserText} method is called by SketchUp when the user has typed text
753
755
  # into the VCB and hit return.
754
756
  #
755
757
  # @example
756
758
  # def onUserText(text, view)
757
- # puts "onSetCursor: text = #{text}, view = #{view}"
759
+ # @distance = text.to_l
760
+ # rescue ArgumentError
761
+ # view.tooltop = 'Invalid length'
758
762
  # end
759
763
  #
760
- # @param text
764
+ # @param [String] text
761
765
  # The text string that was typed into the VCB.
762
766
  #
763
- # @param view
764
- # A View object where the method was invoked.
767
+ # @param [Sketchup::View] view
768
+ # A view object where the method was invoked.
765
769
  #
766
- # @return nil
770
+ # @return [nil]
767
771
  #
768
772
  # @version SketchUp 6.0
769
773
  def onUserText(text, view)
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Tools class contains methods to manipulate a collection of SketchUp
@@ -12,6 +12,18 @@ class Sketchup::Tools
12
12
 
13
13
  # Instance Methods
14
14
 
15
+ # The {#active_tool} method is used to obtain the active Ruby tool.
16
+ #
17
+ # @example
18
+ # tools = Sketchup.active_model.tools
19
+ # tool = tools.current
20
+ #
21
+ # @return [Object, nil] Returns the active Ruby tool, or `nil` otherwise.
22
+ #
23
+ # @version SketchUp 2019
24
+ def active_tool
25
+ end
26
+
15
27
  # The active_tool_id method is used to retrieve the active tool's id.
16
28
  #
17
29
  # @example
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to tool events. To implement
@@ -96,16 +96,16 @@ class Sketchup::ToolsObserver
96
96
  # do this shown below. (This example is not a comprehensive list of the tool
97
97
  # names.)
98
98
  #
99
- # @param [Integer] tool_id
100
- # The ID of the tool. This is a predefined number
101
- # unique to a given tool. For example, the Materials Browser is tool_id
102
- # 21074.
99
+ # @param [Sketchup::Tools] tools
100
+ # A Tools object.
103
101
  #
104
102
  # @param [String] tool_name
105
103
  # The name of the tool.
106
104
  #
107
- # @param [Sketchup::Tools] tools
108
- # A Tools object.
105
+ # @param [Integer] tool_id
106
+ # The ID of the tool. This is a predefined number
107
+ # unique to a given tool. For example, the Materials Browser is tool_id
108
+ # 21074.
109
109
  #
110
110
  # @return [nil]
111
111
  #
@@ -130,20 +130,20 @@ class Sketchup::ToolsObserver
130
130
  # use the tool_id to keep track of which tool you need to watch for, or use
131
131
  # logic that corrects for the error. This bug was fixed in SketchUp 8.0.
132
132
  #
133
- # @param [Integer] tool_state
134
- # A number identifying the state the tool just
135
- # entered.
136
- #
137
133
  # @param [Sketchup::Tools] tools
138
134
  # A Tools object.
139
135
  #
136
+ # @param [String] tool_name
137
+ # The name of the tool.
138
+ #
140
139
  # @param [Integer] tool_id
141
140
  # The ID of the tool. This is a predefined number
142
141
  # unique to a given tool. For example, the Materials Browser is tool_id
143
142
  # 21074.
144
143
  #
145
- # @param [String] tool_name
146
- # The name of the tool.
144
+ # @param [Integer] tool_state
145
+ # A number identifying the state the tool just
146
+ # entered.
147
147
  #
148
148
  # @return [nil]
149
149
  #