@@ -8,6 +8,62 @@ class Layout::Grid
88
99 # Instance Methods
1010
11+ # The {#clip_to_margins=} method sets whether or not the grid is clipped to the
12+ # page margins.
13+ #
14+ # @example
15+ # doc = Layout::Document.open("C:/path/to/document.layout")
16+ # grid = doc.grid
17+ # grid.clip_to_margins = true
18+ #
19+ # @param [Boolean] clip
20+ #
21+ # @version LayOut 2020.1
22+ def clip_to_margins = ( clip )
23+ end
24+
25+ # The {#clip_to_margins?} method returns whether or not the grid is clipped to
26+ # the page margins.
27+ #
28+ # @example
29+ # doc = Layout::Document.open("C:/path/to/document.layout")
30+ # grid = doc.grid
31+ # in_front = grid.clip_to_margins?
32+ #
33+ # @return [Boolean]
34+ #
35+ # @version LayOut 2020.1
36+ def clip_to_margins?
37+ end
38+
39+ # The {#in_front=} method sets whether or not the grid is drawn on top of
40+ # entities.
41+ #
42+ # @example
43+ # doc = Layout::Document.open("C:/path/to/document.layout")
44+ # grid = doc.grid
45+ # grid.in_front = true
46+ #
47+ # @param [Boolean] in_front
48+ #
49+ # @version LayOut 2020.1
50+ def in_front = ( in_front )
51+ end
52+
53+ # The {#in_front?} method returns whether or not the grid is drawn on top of
54+ # entities.
55+ #
56+ # @example
57+ # doc = Layout::Document.open("C:/path/to/document.layout")
58+ # grid = doc.grid
59+ # in_front = grid.in_front?
60+ #
61+ # @return [Boolean]
62+ #
63+ # @version LayOut 2020.1
64+ def in_front?
65+ end
66+
1167 # The {#major_color} method returns the {Sketchup::Color} for the major grid
1268 # lines.
1369 #
@@ -22,6 +78,26 @@ class Layout::Grid
2278 def major_color
2379 end
2480
81+ # The {#major_color=} method sets the {Sketchup::Color} for the major grid
82+ # lines.
83+ #
84+ # @example
85+ # doc = Layout::Document.open("C:/path/to/document.layout")
86+ # grid = doc.grid
87+ # grid.major_color = Sketchup::Color.new(255, 0, 0)
88+ # grid.major_color = 255
89+ # grid.major_color = 0x0000ff
90+ # grid.major_color = "red"
91+ # grid.major_color = "#ff0000"
92+ # grid.major_color = [1.0, 0.0, 0.0]
93+ # grid.major_color = [255, 0, 0]
94+ #
95+ # @param [Sketchup::Color] color
96+ #
97+ # @version LayOut 2020.1
98+ def major_color = ( color )
99+ end
100+
25101 # The {#major_spacing} method returns the major space size of the
26102 # {Layout::Grid}.
27103 #
@@ -36,6 +112,24 @@ def major_color
36112 def major_spacing
37113 end
38114
115+ # The {#major_spacing=} method sets the major space size of the
116+ # {Layout::Grid}.
117+ #
118+ # @example
119+ # doc = Layout::Document.open("C:/path/to/document.layout")
120+ # grid = doc.grid
121+ # grid.major_spacing = 1.25
122+ #
123+ # @param [Float] spacing
124+ # The double specifying the space size for the
125+ # {Layout::Grid}
126+ #
127+ # @raise [ArgumentError] if spacing is not greater than zero
128+ #
129+ # @version LayOut 2020.1
130+ def major_spacing = ( spacing )
131+ end
132+
39133 # The {#minor_color} method returns the {Sketchup::Color} for the minor grid
40134 # lines.
41135 #
@@ -50,6 +144,26 @@ def major_spacing
50144 def minor_color
51145 end
52146
147+ # The {#minor_color=} method sets the {Sketchup::Color} for the minor grid
148+ # lines.
149+ #
150+ # @example
151+ # doc = Layout::Document.open("C:/path/to/document.layout")
152+ # grid = doc.grid
153+ # grid.minor_color = Sketchup::Color.new(255, 0, 0)
154+ # grid.minor_color = 255
155+ # grid.minor_color = 0x0000ff
156+ # grid.minor_color = "red"
157+ # grid.minor_color = "#ff0000"
158+ # grid.minor_color = [1.0, 0.0, 0.0]
159+ # grid.minor_color = [255, 0, 0]
160+ #
161+ # @param [Sketchup::Color] color
162+ #
163+ # @version LayOut 2020.1
164+ def minor_color = ( color )
165+ end
166+
53167 # The {#minor_divisions} method returns the number of minor divisions of the
54168 # {Layout::Grid}.
55169 #
@@ -64,6 +178,38 @@ def minor_color
64178 def minor_divisions
65179 end
66180
181+ # The {#minor_divisions=} method sets the number of minor divisions of the
182+ # {Layout::Grid}.
183+ #
184+ # @example
185+ # doc = Layout::Document.open("C:/path/to/document.layout")
186+ # grid = doc.grid
187+ # grid.major_spacing = 1.25
188+ #
189+ # @param [Integer] divisions
190+ # The number of minor divisions for the
191+ # {Layout::Grid}
192+ #
193+ # @raise [ArgumentError] if divisions is negative
194+ #
195+ # @version LayOut 2020.1
196+ def minor_divisions = ( divisions )
197+ end
198+
199+ # The {#print=} method sets whether or not the {Layout::Grid} is
200+ # printed.
201+ #
202+ # @example
203+ # doc = Layout::Document.open("C:/path/to/document.layout")
204+ # grid = doc.grid
205+ # grid.print = false
206+ #
207+ # @param [Boolean] print
208+ #
209+ # @version LayOut 2020.1
210+ def print = ( print )
211+ end
212+
67213 # The {#print?} method returns whether or not the {Layout::Grid} is
68214 # printed.
69215 #
@@ -78,6 +224,20 @@ def minor_divisions
78224 def print?
79225 end
80226
227+ # The {#show=} method sets whether or not the {Layout::Grid} is
228+ # visible.
229+ #
230+ # @example
231+ # doc = Layout::Document.open("C:/path/to/document.layout")
232+ # grid = doc.grid
233+ # grid.show = true
234+ #
235+ # @param [Boolean] show
236+ #
237+ # @version LayOut 2020.1
238+ def show = ( show )
239+ end
240+
81241 # The {#show?} method returns whether or not the {Layout::Grid} is
82242 # visible.
83243 #
@@ -92,6 +252,20 @@ def print?
92252 def show?
93253 end
94254
255+ # The {#show_major=} method sets whether or not the major grid lines are
256+ # visible.
257+ #
258+ # @example
259+ # doc = Layout::Document.open("C:/path/to/document.layout")
260+ # grid = doc.grid
261+ # grid.show_major = true
262+ #
263+ # @param [Boolean] show
264+ #
265+ # @version LayOut 2020.1
266+ def show_major = ( show )
267+ end
268+
95269 # The {#show_major?} method returns whether or not the major grid lines are
96270 # visible.
97271 #
@@ -106,6 +280,20 @@ def show?
106280 def show_major?
107281 end
108282
283+ # The {#show_minor=} method sets whether or not the minor grid lines are
284+ # visible.
285+ #
286+ # @example
287+ # doc = Layout::Document.open("C:/path/to/document.layout")
288+ # grid = doc.grid
289+ # grid.show_minor = false
290+ #
291+ # @param [Boolean] show
292+ #
293+ # @version LayOut 2020.1
294+ def show_minor = ( show )
295+ end
296+
109297 # The {#show_minor?} method returns whether or not the minor grid lines are
110298 # visible.
111299 #
0 commit comments