You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/modules/ROOT/pages/layout/sizing.adoc
+116-99
Original file line number
Diff line number
Diff line change
@@ -21,19 +21,22 @@ Overrides the {limits} of an element.
21
21
`limits` :: Instance of {view_limits}
22
22
`subject` :: Instance of `Element`
23
23
24
-
=== Expression
24
+
=== Expressions
25
25
26
-
[,c++]
26
+
[cols="2,3", options="header"]
27
+
|===
28
+
| Expression | Semantics
29
+
30
+
a|
31
+
[source,c++]
27
32
----
28
33
limit(limits, subject)
29
34
----
30
-
31
-
=== Semantics
32
-
33
-
. The {limits} of `subject` will be set to the specified {limits}
34
-
constrained by The natural _limits_ of the `subject`.
35
+
a|
36
+
. The {limits} of `subject` will be set to the specified {limits} constrained by the natural _limits_ of the `subject`.
35
37
. The natural _limits_ of the element will not be violated.
36
-
. Returns instance of `Proxy`.
38
+
. Returns an instance of `Proxy`.
39
+
|===
37
40
38
41
== fixed_size
39
42
@@ -46,21 +49,24 @@ Fixes the size of an enclosed element (`subject`).
46
49
`width`, `height` :: `float`
47
50
`subject` :: Instance of `Element`
48
51
49
-
=== Expression
52
+
=== Expressions
53
+
54
+
[cols="2,3", options="header"]
55
+
|===
56
+
| Expression | Semantics
50
57
51
-
[,c++]
58
+
a|
59
+
[source,c++]
52
60
----
53
-
fixed_size({width, height}, subject)
61
+
fixed_size({width, height},
62
+
subject
63
+
)
54
64
----
55
-
56
-
=== Semantics
57
-
58
-
. `subject` will be laid out with a fixed `width` and `height`, constrained
59
-
by The natural _limits_ of the `subject`.
65
+
a|
66
+
. `subject` will be laid out with a fixed `width` and `height`, constrained by the natural _limits_ of the `subject`.
60
67
. The natural _limits_ of the element will not be violated.
61
68
. Returns instance of `Proxy`.
62
-
63
-
'''
69
+
|===
64
70
65
71
== hsize
66
72
@@ -73,22 +79,23 @@ Fixes the horizontal size of an enclosed element (`subject`).
73
79
`width`:: `float`
74
80
`subject`:: Instance of `Element`
75
81
76
-
=== Expression
82
+
=== Expressions
77
83
78
-
[,c++]
84
+
[cols="2,3", options="header"]
85
+
|===
86
+
| Expression | Semantics
87
+
88
+
a|
89
+
[source,c++]
79
90
----
80
91
hsize(width, subject)
81
92
----
82
-
83
-
=== Semantics
84
-
85
-
. `subject` will be laid out with a fixed `width`, constrained by the
86
-
natural _horizontal limits_ of the `subject`.
93
+
a|
94
+
. `subject` will be laid out with a fixed `width`, constrained by the natural _horizontal limits_ of the `subject`.
87
95
. The natural _horizontal limits_ of the element will not be violated.
88
96
. The natural _vertical limits_ of `subject` will not be affected.
89
97
. Returns instance of `Proxy`.
90
-
91
-
'''
98
+
|===
92
99
93
100
== vsize
94
101
@@ -101,22 +108,23 @@ Fixes the _vertical limits_ of an enclosed element (`subject`).
101
108
`height`:: `float`
102
109
`subject`:: Instance of `Element`
103
110
104
-
=== Expression
111
+
=== Expressions
112
+
113
+
[cols="2,3", options="header"]
114
+
|===
115
+
| Expression | Semantics
105
116
106
-
[,c++]
117
+
a|
118
+
[source,c++]
107
119
----
108
120
vsize(height, subject)
109
121
----
110
-
111
-
=== Semantics
112
-
113
-
. `subject` will be laid out with a fixed `height`, constrained by the
114
-
natural _vertical limits_ of the `subject`.
122
+
a|
123
+
. `subject` will be laid out with a fixed `height`, constrained by the natural _vertical limits_ of the `subject`.
115
124
. The natural _vertical limits_ of the element will not be violated.
116
125
. The natural _horizontal limits_ of `subject` will not be affected.
117
126
. Returns instance of `Proxy`.
118
-
119
-
'''
127
+
|===
120
128
121
129
== min_size
122
130
@@ -129,21 +137,24 @@ Overrides the _minimum limits_ of an enclosed element (`subject`).
129
137
`width`, `height`:: `float`
130
138
`subject`:: Instance of `Element`
131
139
132
-
=== Expression
140
+
=== Expressions
141
+
142
+
[cols="2,3", options="header"]
143
+
|===
144
+
| Expression | Semantics
133
145
134
-
[,c++]
146
+
a|
147
+
[source,c++]
135
148
----
136
-
min_size({width, height}, subject)
149
+
min_size({width, height},
150
+
subject
151
+
)
137
152
----
138
-
139
-
=== Semantics
140
-
141
-
. The _minimum limits_ of `subject` will be set to the specified `width` and
142
-
`height`, constrained by the natural _minimum limits_ of the `subject`.
143
-
. the natural _minimum limits_ of the element will not be violated.
153
+
a|
154
+
. The _minimum limits_ of `subject` will be set to the specified `width` and `height`, constrained by the natural _minimum limits_ of the `subject`.
155
+
. The natural _minimum limits_ of the element will not be violated.
144
156
. Returns instance of `Proxy`.
145
-
146
-
'''
157
+
|===
147
158
148
159
== hmin_size
149
160
@@ -156,23 +167,22 @@ Overrides the _minimum horizontal limit_ of an enclosed element (`subject`).
156
167
`width`:: `float`
157
168
`subject`:: Instance of `Element`
158
169
159
-
=== Expression
170
+
=== Expressions
160
171
161
-
[,c++]
172
+
[cols="2,3", options="header"]
173
+
|===
174
+
| Expression | Semantics
175
+
176
+
a|
177
+
[source,c++]
162
178
----
163
179
hmin_size(width, subject)
164
180
----
165
-
166
-
=== Semantics
167
-
168
-
. The _minimum horizontal limit_ of `subject` will be set to the specified
169
-
`width` constrained by the natural _horizontal minimum limits_ of the
170
-
`subject`.
171
-
. The natural _horizontal minimum limits_ of the element will not be
172
-
violated.
181
+
a|
182
+
. The _minimum horizontal limit_ of `subject` will be set to the specified `width` constrained by the natural _horizontal minimum limits_ of the `subject`.
183
+
. The natural _horizontal minimum limits_ of the element will not be violated.
173
184
. Returns instance of `Proxy`.
174
-
175
-
'''
185
+
|===
176
186
177
187
== vmin_size
178
188
@@ -185,21 +195,22 @@ Overrides the _minimum vertical limit_ of an enclosed element (`subject`).
185
195
`height`:: `float`
186
196
`subject`:: Instance of `Element`
187
197
188
-
=== Expression
198
+
=== Expressions
199
+
200
+
[cols="2,3", options="header"]
201
+
|===
202
+
| Expression | Semantics
189
203
190
-
[,c++]
204
+
a|
205
+
[source,c++]
191
206
----
192
207
vmin_size(height, subject)
193
208
----
194
-
195
-
=== Semantics
196
-
197
-
. The _minimum vertical limit_ of `subject` will be set to the specified `height`
198
-
constrained by the natural vertical _minimum limits_ of the `subject`.
209
+
a|
210
+
. The _minimum vertical limit_ of `subject` will be set to the specified `height` constrained by the natural vertical _minimum limits_ of the `subject`.
199
211
. The natural _vertical minimum limits_ of the element will not be violated.
200
212
. Returns instance of `Proxy`.
201
-
202
-
'''
213
+
|===
203
214
204
215
== max_size
205
216
@@ -212,21 +223,24 @@ Overrides the _maximum limits_ of an enclosed element (`subject`).
212
223
`width`, `height`:: `float`
213
224
`subject`:: Instance of `Element`
214
225
215
-
=== Expression
226
+
=== Expressions
216
227
217
-
[,c++]
228
+
[cols="2,3", options="header"]
229
+
|===
230
+
| Expression | Semantics
231
+
232
+
a|
233
+
[source,c++]
218
234
----
219
-
max_size({width, height}, subject)
235
+
max_size({width, height},
236
+
subject
237
+
)
220
238
----
221
-
222
-
=== Semantics
223
-
224
-
. The _maximum limits_ of `subject` will be set to the specified `width` and
225
-
`height`, constrained by the natural _maximum limits_ of the `subject`.
239
+
a|
240
+
. The _maximum limits_ of `subject` will be set to the specified `width` and `height`, constrained by the natural _maximum limits_ of the `subject`.
226
241
. The natural _maximum limits_ of the element will not be violated.
227
242
. Returns instance of `Proxy`.
228
-
229
-
'''
243
+
|===
230
244
231
245
== hmax_size
232
246
@@ -239,23 +253,24 @@ Overrides the _maximum horizontal limit_ of an enclosed element (`subject`).
239
253
`width`:: `float`
240
254
`subject`:: Instance of `Element`
241
255
242
-
=== Expression
256
+
=== Expressions
257
+
258
+
[cols="2,3", options="header"]
259
+
|===
260
+
| Expression | Semantics
243
261
244
-
[,c++]
262
+
a|
263
+
[source,c++]
245
264
----
246
-
hmax_size(width, subject)
265
+
max_size({width, height},
266
+
subject
267
+
)
247
268
----
248
-
249
-
=== Semantics
250
-
251
-
. The _maximum horizontal limit_ of `subject` will be set to the specified
252
-
`width` constrained by the natural _maximum horizontal limit_ of the
253
-
`subject`.
254
-
. The natural _maximum horizontal limit_ of the element will not be
255
-
violated.
269
+
a|
270
+
. The _maximum limits_ of `subject` will be set to the specified `width` and `height`, constrained by the natural _maximum limits_ of the `subject`.
271
+
. The natural _maximum limits_ of the element will not be violated.
256
272
. Returns instance of `Proxy`.
257
-
258
-
'''
273
+
|===
259
274
260
275
== vmax_size
261
276
@@ -268,20 +283,22 @@ Overrides the _maximum vertical limit_ of an enclosed element (`subject`).
268
283
`height`:: `float`
269
284
`subject`:: Instance of `Element`
270
285
271
-
=== Expression
286
+
=== Expressions
287
+
288
+
[cols="2,3", options="header"]
289
+
|===
290
+
| Expression | Semantics
272
291
273
-
[,c++]
292
+
a|
293
+
[source,c++]
274
294
----
275
295
vmax_size(height, subject)
276
296
----
277
-
278
-
=== Semantics
279
-
280
-
. The _maximum vertical limit_ of `subject` will be set to the specified
281
-
`height` constrained by the natural _maximum vertical limit_ of the
282
-
`subject`
297
+
a|
298
+
. The _maximum vertical limit_ of `subject` will be set to the specified `height` constrained by the natural _maximum vertical limit_ of the `subject`.
283
299
. The natural _maximum vertical limit_ of the element will not be violated.
0 commit comments