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
@@ -0,0 +1,349 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # A formatted text entity.
5
+ #
6
+ # @version LayOut 2018
7
+ class Layout::FormattedText < Entity
8
+
9
+ # Constants
10
+
11
+ ANCHOR_TYPE_BOTTOM_CENTER = nil # Stub value.
12
+ ANCHOR_TYPE_BOTTOM_LEFT = nil # Stub value.
13
+ ANCHOR_TYPE_BOTTOM_RIGHT = nil # Stub value.
14
+ ANCHOR_TYPE_CENTER_CENTER = nil # Stub value.
15
+ ANCHOR_TYPE_CENTER_LEFT = nil # Stub value.
16
+ ANCHOR_TYPE_CENTER_RIGHT = nil # Stub value.
17
+ ANCHOR_TYPE_TOP_CENTER = nil # Stub value.
18
+ ANCHOR_TYPE_TOP_LEFT = nil # Stub value.
19
+ ANCHOR_TYPE_TOP_RIGHT = nil # Stub value.
20
+
21
+ GROW_MODE_BOUNDED = nil # Stub value.
22
+ GROW_MODE_UNBOUNDED = nil # Stub value.
23
+
24
+ # Class Methods
25
+
26
+ # The {.new_from_file} method creates a new {Layout::FormattedText} from a text
27
+ # file.
28
+ #
29
+ # The anchor type can be one of the following values:
30
+ # [+ANCHOR_TYPE_TOP_LEFT+]
31
+ # [+ANCHOR_TYPE_CENTER_LEFT+]
32
+ # [+ANCHOR_TYPE_BOTTOM_LEFT+]
33
+ # [+ANCHOR_TYPE_TOP_RIGHT+]
34
+ # [+ANCHOR_TYPE_CENTER_RIGHT+]
35
+ # [+ANCHOR_TYPE_BOTTOM_RIGHT+]
36
+ # [+ANCHOR_TYPE_TOP_CENTER+]
37
+ # [+ANCHOR_TYPE_CENTER_CENTER+]
38
+ # [+ANCHOR_TYPE_BOTTOM_CENTER+]
39
+ #
40
+ # @example
41
+ # anchor = Geom::Point2d.new(1, 1)
42
+ # text = Layout::FormattedText.new("C:/Test.txt", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
43
+ #
44
+ # @overload new_from_file(path, bounds)
45
+ #
46
+ # @param [String] path
47
+ # @param [Geom::Bounds2d] bounds
48
+ # @return [Layout::FormattedText]
49
+ #
50
+ # @overload new_from_file(path, anchor_point, anchor_type)
51
+ #
52
+ # @param [String] path
53
+ # @param [Geom::Point2d] anchor_point The anchor point for the
54
+ # {Layout::FormattedText}'s position.
55
+ # @param [Integer] anchor_type Defines which point of the
56
+ # {Layout::FormattedText} is set by anchor_point.
57
+ # @return [Layout::FormattedText]
58
+ #
59
+ # @raise [ArgumentError] if path does not refer to a valid file
60
+ #
61
+ # @raise [ArgumentError] if bounds is zero size
62
+ #
63
+ # @raise [ArgumentError] if the passed in string is empty
64
+ #
65
+ # @version LayOut 2018
66
+ def self.new_from_file(*args)
67
+ end
68
+
69
+ # Instance Methods
70
+
71
+ # The {#append_plain_text} method appends new text with a given style to the
72
+ # end of the existing plain text of the {Layout::FormattedText}.
73
+ #
74
+ # @example
75
+ # anchor = Geom::Point2d.new(1, 1)
76
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
77
+ # style = text.style(0)
78
+ # text.append_plain_text("foo", style)
79
+ #
80
+ # @note This method does not support more than two different style runs in a
81
+ # single text string.
82
+ #
83
+ # @param [String] plain_text
84
+ #
85
+ # @param [Layout::Style] style
86
+ #
87
+ # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
88
+ # {Layout::Layer}
89
+ #
90
+ # @raise [ArgumentError] if plain_text is empty
91
+ #
92
+ # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
93
+ #
94
+ # @version LayOut 2018
95
+ def append_plain_text(plain_text, style)
96
+ end
97
+
98
+ # The {#apply_style} method sets the {Layout::Style} for the text starting at
99
+ # the given character index, and running for the given number of characters.
100
+ #
101
+ # @example
102
+ # anchor = Geom::Point2d.new(1, 1)
103
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
104
+ # style = text.style(0)
105
+ # style.text_bold = true
106
+ # text.apply_style(style, 2, 4)
107
+ #
108
+ # @param [Integer] length
109
+ #
110
+ # @param [Integer] index
111
+ #
112
+ # @param [Layout::Style] style
113
+ #
114
+ # @raise [RangeError] if the range specified by index and length is not
115
+ # valid for this {Layout::FormattedText}
116
+ #
117
+ # @raise [ArgumentError] if length is not greater than zero
118
+ #
119
+ # @raise [IndexError] if index is out of range
120
+ #
121
+ # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
122
+ # {Layout::Layer}
123
+ #
124
+ # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
125
+ #
126
+ # @version LayOut 2018
127
+ def apply_style(style, index = 0, length = length_to_end_of_text)
128
+ end
129
+
130
+ # The {#display_text} method returns the display text representation of the
131
+ # {Layout::FormattedText}.
132
+ #
133
+ # @example
134
+ # anchor = Geom::Point2d.new(1, 1)
135
+ # text = Layout::FormattedText.new("<PageNumber>", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
136
+ # doc.add_entity(text, doc.layers.first, doc.pages.first)
137
+ # text = text.display_text(doc.pages.first)
138
+ #
139
+ # @note Passing an invalid {Layout::Page} will prevent an auto text tag from
140
+ # being substituted with its display representation.
141
+ #
142
+ # @param [Layout::Page] page
143
+ # The {Layout::Page} to use to convert an auto text
144
+ # tag to display text
145
+ #
146
+ # @raise [ArgumentError] if page is not in the same {Layout::Document} as
147
+ # the {Layout::FormattedText}
148
+ #
149
+ # @return [String]
150
+ #
151
+ # @version LayOut 2018
152
+ def display_text(page = nil)
153
+ end
154
+
155
+ # The {#grow_mode} method returns the mode for how the {Layout::FormattedText}
156
+ # sizes itself.
157
+ #
158
+ # The grow mode can be one of the following values:
159
+ # [+Layout::FormattedText::GROW_MODE_BOUNDED+]
160
+ # [+Layout::FormattedText::GROW_MODE_UNBOUNDED+]
161
+ #
162
+ # @example
163
+ # anchor = Geom::Point2d.new(1, 1)
164
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
165
+ # mode = text.grow_mode
166
+ #
167
+ # @return [Integer] grow_mode
168
+ #
169
+ # @version LayOut 2018
170
+ def grow_mode
171
+ end
172
+
173
+ # The {#grow_mode=} method sets the mode for how the {Layout::FormattedText}
174
+ # sizes itself.
175
+ #
176
+ # The grow mode can be one of the following values:
177
+ # [+Layout::FormattedText::GROW_MODE_BOUNDED+]
178
+ # [+Layout::FormattedText::GROW_MODE_UNBOUNDED+]
179
+ #
180
+ # @example
181
+ # anchor = Geom::Point2d.new(1, 1)
182
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
183
+ # text.grow_mode = GROW_MODE_UNBOUNDED
184
+ #
185
+ # @raise [ArgumentError] if grow_mode is not a valid grow mode
186
+ #
187
+ # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
188
+ # {Layout::Layer}
189
+ #
190
+ # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
191
+ #
192
+ # @return [Integer] grow_mode
193
+ #
194
+ # @version LayOut 2018
195
+ def grow_mode=(grow_mode)
196
+ end
197
+
198
+ # The {#initialize} method creates a new {Layout::FormattedText}.
199
+ #
200
+ # The anchor type can be one of the following values:
201
+ # [+ANCHOR_TYPE_TOP_LEFT+]
202
+ # [+ANCHOR_TYPE_CENTER_LEFT+]
203
+ # [+ANCHOR_TYPE_BOTTOM_LEFT+]
204
+ # [+ANCHOR_TYPE_TOP_RIGHT+]
205
+ # [+ANCHOR_TYPE_CENTER_RIGHT+]
206
+ # [+ANCHOR_TYPE_BOTTOM_RIGHT+]
207
+ # [+ANCHOR_TYPE_TOP_CENTER+]
208
+ # [+ANCHOR_TYPE_CENTER_CENTER+]
209
+ # [+ANCHOR_TYPE_BOTTOM_CENTER+]
210
+ #
211
+ # @example
212
+ # anchor = Geom::Point2d.new(1, 1)
213
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
214
+ #
215
+ # @overload initialize(text, bounds)
216
+ #
217
+ # @param [String] text
218
+ # @param [Geom::Bounds2d] bounds
219
+ # @return [Layout::FormattedText]
220
+ #
221
+ # @overload initialize(text, anchor_point, anchor_type)
222
+ #
223
+ # @param [String] text
224
+ # @param [Geom::Point2d] anchor_point The anchor point for the
225
+ # {Layout::FormattedText}'s position.
226
+ # @param [Integer] anchor_type Defines which point of the
227
+ # {Layout::FormattedText} is set by anchor_point.
228
+ # @return [Layout::FormattedText]
229
+ #
230
+ # @raise [ArgumentError] if bounds is zero size
231
+ #
232
+ # @raise [ArgumentError] if the passed in string is empty
233
+ #
234
+ # @version LayOut 2018
235
+ def initialize(*args)
236
+ end
237
+
238
+ # The {#plain_text} method returns the plain text representation of the
239
+ # {Layout::FormattedText}.
240
+ #
241
+ # @example
242
+ # anchor = Geom::Point2d.new(1, 1)
243
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
244
+ # text = text.plain_text
245
+ #
246
+ # @return [String]
247
+ #
248
+ # @version LayOut 2018
249
+ def plain_text
250
+ end
251
+
252
+ # The {#plain_text=} method sets the plain text representation of the
253
+ # {Layout::FormattedText}.
254
+ #
255
+ # @example
256
+ # anchor = Geom::Point2d.new(1, 1)
257
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
258
+ # text.plain_text = "foo"
259
+ #
260
+ # @param [String] plain_text
261
+ #
262
+ # @raise [ArgumentError] if plain_text is empty
263
+ #
264
+ # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
265
+ #
266
+ # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
267
+ # {Layout::Layer}
268
+ #
269
+ # @version LayOut 2018
270
+ def plain_text=(plain_text)
271
+ end
272
+
273
+ # The {#rtf} method returns the raw RTF representation of the
274
+ # {Layout::FormattedText}.
275
+ #
276
+ # @example
277
+ # anchor = Geom::Point2d.new(1, 1)
278
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
279
+ # rtf_text = text.rtf
280
+ #
281
+ # @note Passing an invalid {Layout::Page} will prevent an auto text tag from
282
+ # being substituted with its display representation.
283
+ #
284
+ # @overload rtf
285
+ #
286
+ # @return [String] The RTF text string. If the {Layout::FormattedText} is
287
+ # auto text, this will be an auto text tag.
288
+ #
289
+ # @overload rtf(page)
290
+ #
291
+ # @param [Layout::Page] page The {Layout::Page} to use to convert an auto
292
+ # text tag to display text
293
+ # @return [String] The RTF text string. If the {Layout::FormattedText} is
294
+ # auto text, this will be the display text.
295
+ #
296
+ # @raise [ArgumentError] if page is not in the same {Layout::Document} as
297
+ # the {Layout::FormattedText}
298
+ #
299
+ # @version LayOut 2018
300
+ def rtf(*args)
301
+ end
302
+
303
+ # The {#rtf=} method sets the raw RTF representation of the
304
+ # {Layout::FormattedText}.
305
+ #
306
+ # @example
307
+ # anchor = Geom::Point2d.new(1, 1)
308
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
309
+ # text.rtf = "{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard This is some {\b bold} text.\par}"
310
+ #
311
+ # @param [String] rtf_text
312
+ #
313
+ # @raise [ArgumentError] if rtf_text is an empty string
314
+ #
315
+ # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
316
+ #
317
+ # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
318
+ # {Layout::Layer}
319
+ #
320
+ # @version LayOut 2018
321
+ def rtf=(rtf_text)
322
+ end
323
+
324
+ # The {#style} method returns a {Layout::Style} for the text starting at the
325
+ # given character index, and running for the given length.
326
+ #
327
+ # @example
328
+ # anchor = Geom::Point2d.new(1, 1)
329
+ # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
330
+ # style = text.style(0)
331
+ #
332
+ # @param [Integer] length
333
+ #
334
+ # @param [Integer] index
335
+ #
336
+ # @raise [ArgumentError] if length is not greater than zero
337
+ #
338
+ # @raise [IndexError] if index is out of range
339
+ #
340
+ # @raise [RangeError] if the range specified by index and length is not
341
+ # valid for this {Layout::FormattedText}
342
+ #
343
+ # @return [Layout::Style]
344
+ #
345
+ # @version LayOut 2018
346
+ def style(index = 0, length = 1)
347
+ end
348
+
349
+ end
@@ -0,0 +1,131 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # Class that references a {Layout::Document}'s grid settings.
5
+ #
6
+ # @version LayOut 2018
7
+ class Layout::Grid
8
+
9
+ # Instance Methods
10
+
11
+ # The {#major_color} method returns the {Sketchup::Color} for the major grid
12
+ # lines.
13
+ #
14
+ # @example
15
+ # doc = Layout::Document.open("C:/path/to/document.layout")
16
+ # grid = doc.grid
17
+ # color = grid.major_color
18
+ #
19
+ # @return [Sketchup::Color]
20
+ #
21
+ # @version LayOut 2018
22
+ def major_color
23
+ end
24
+
25
+ # The {#major_spacing} method returns the major space size of the
26
+ # {Layout::Grid}.
27
+ #
28
+ # @example
29
+ # doc = Layout::Document.open("C:/path/to/document.layout")
30
+ # grid = doc.grid
31
+ # major_spacing = grid.major_spacing
32
+ #
33
+ # @return [Numeric]
34
+ #
35
+ # @version LayOut 2018
36
+ def major_spacing
37
+ end
38
+
39
+ # The {#minor_color} method returns the {Sketchup::Color} for the minor grid
40
+ # lines.
41
+ #
42
+ # @example
43
+ # doc = Layout::Document.open("C:/path/to/document.layout")
44
+ # grid = doc.grid
45
+ # color = grid.minor_color
46
+ #
47
+ # @return [Sketchup::Color]
48
+ #
49
+ # @version LayOut 2018
50
+ def minor_color
51
+ end
52
+
53
+ # The {#minor_divisions} method returns the number of minor divisions of the
54
+ # {Layout::Grid}.
55
+ #
56
+ # @example
57
+ # doc = Layout::Document.open("C:/path/to/document.layout")
58
+ # grid = doc.grid
59
+ # minor_divisions = grid.minor_divisions
60
+ #
61
+ # @return [Integer]
62
+ #
63
+ # @version LayOut 2018
64
+ def minor_divisions
65
+ end
66
+
67
+ # The {#print?} method returns whether or not the {Layout::Grid} is
68
+ # printed.
69
+ #
70
+ # @example
71
+ # doc = Layout::Document.open("C:/path/to/document.layout")
72
+ # grid = doc.grid
73
+ # print = grid.print?
74
+ #
75
+ # @return [Boolean]
76
+ #
77
+ # @return [Boolean]
78
+ #
79
+ # @version LayOut 2018
80
+ def print?
81
+ end
82
+
83
+ # The {#show?} method returns whether or not the {Layout::Grid} is
84
+ # visible.
85
+ #
86
+ # @example
87
+ # doc = Layout::Document.open("C:/path/to/document.layout")
88
+ # grid = doc.grid
89
+ # show = grid.show?
90
+ #
91
+ # @return [Boolean]
92
+ #
93
+ # @return [Boolean]
94
+ #
95
+ # @version LayOut 2018
96
+ def show?
97
+ end
98
+
99
+ # The {#show_major?} method returns whether or not the major grid lines are
100
+ # visible.
101
+ #
102
+ # @example
103
+ # doc = Layout::Document.open("C:/path/to/document.layout")
104
+ # grid = doc.grid
105
+ # show_major = grid.show_major?
106
+ #
107
+ # @return [Boolean]
108
+ #
109
+ # @return [Boolean]
110
+ #
111
+ # @version LayOut 2018
112
+ def show_major?
113
+ end
114
+
115
+ # The {#show_minor?} method returns whether or not the minor grid lines are
116
+ # visible.
117
+ #
118
+ # @example
119
+ # doc = Layout::Document.open("C:/path/to/document.layout")
120
+ # grid = doc.grid
121
+ # show_minor = grid.show_minor?
122
+ #
123
+ # @return [Boolean]
124
+ #
125
+ # @return [Boolean]
126
+ #
127
+ # @version LayOut 2018
128
+ def show_minor?
129
+ end
130
+
131
+ end