例
| 例 | |
![]() | |
{VBox
background="lime",
spacing=5pt,
{bold Words},
17,
{HBox spacing=10pt, "abc", "def"},
{CommandButton label="Press me!"},
{TextField value="Hello", width=2in}} |
| 例 | |
![]() | |
{VBox
background="lime",
spacing=5pt,
halign="origin",
{RectangleGraphic width=1in, height=6pt},
{bold Words},
17,
{HBox spacing=10pt, "abc", "def"},
{CommandButton label="Press me!"},
{TextField value="Hello", width=2in},
{RectangleGraphic width=1in, height=6pt},
{RectangleGraphic width=1in, height=6pt, horigin="right"}} |
| このタイプの新しいオブジェクトを作成するために |
| 任意の数の子 |
| 当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。 |
| VBox のグラフィッカルな子が互いに、水平方向にどのように配列されるかを指定します。 |
| 固定サイズの子が伸長可能な子を収縮するかどうかを設定します。 |
| スタイリングの目的のための、この |
| index で示される子の一部が clip-top と clip-bottom の境界間で目に見える場合は true を返します。 |
| クローンを作成し、クローン自体を返します。 |
| このオブジェクトの可視表現を描画します。 |
| 目に見える最初の子のインデックスを返します。 |
| グラフィックにパジネーションを適用します。 |
このタイプの新しいオブジェクトを作成するために
注意事項
任意の数の子
注意事項
当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。
オーバーライド
説明
例
| 例 | |
![]() | |
{let vb:VBox =
{spaced-vbox
hstretch? = true,
background = "green",
{Frame height = 1cm, width = 3cm, background = "lime"},
{Frame height = 3cm, width = 4cm, background = "orange"},
{Frame height = 2cm, width = 2cm, background = "yellow"}
}
}
{Frame
background = "red",
width = 5cm,
vb
}
{CheckButton
label = "framelike-stretch?",
value = vb.framelike-stretch?,
{on ValueFinished at cb:CheckButton do
set vb.framelike-stretch? = cb.value
}
}
|
VBox のグラフィッカルな子が互いに、水平方向にどのように配列されるかを指定します。
説明
固定サイズの子が伸長可能な子を収縮するかどうかを設定します。
説明
スタイリングの目的のための、この
説明
オーバーライド
index で示される子の一部が clip-top と clip-bottom の境界間で目に見える場合は true を返します。
クローンを作成し、クローン自体を返します。
オーバーライド
{{compile-time-type-of self}.clone-appearance-from self, fixup}
このオブジェクトの可視表現を描画します。
オーバーライド
目に見える最初の子のインデックスを返します。
グラフィックにパジネーションを適用します。
戻り値
プログラミング注意事項
オーバーライド
{method public open {paginate
page-height:Distance,
next-page-height:Distance,
query-only?:bool
}:(PaginationState, PaginationQuality)
let pstate:PaginationState =
{self.get-pagination-state query-only?}
let bounds:GRect = pstate.bounds
let constant epsilon:Distance = epsilon-float * 1m
|| All done.
{if {abs bounds.descent - pstate.end-offset} < epsilon then
set pstate.start-offset = pstate.end-offset
{return pstate, PaginationQuality.complete}
}
|| No space left for the graphic.
{if page-height < epsilon then
{return pstate, PaginationQuality.clipped-outside}
}
let new-start-offset:Distance = pstate.min-end-offset
let new-end-offset:Distance =
{min new-start-offset + page-height, bounds.descent}
{return
{pstate.advance-pagination
new-start-offset,
new-end-offset,
quality-if-not-complete = PaginationQuality.poor
}
}
}
注意事項