水平行に
例
| 例 | |
{HBox
background="lime",
spacing=5pt,
{bold Words},
17,
{VBox "abc", "def"},
{CommandButton label="Press me!"},
{TextField value="Hello", width=2in}} |
| 例 | |
{HBox
background="lime",
spacing=5pt,
valign="bottom",
{RectangleGraphic width=18pt, height=6pt},
{bold Words},
17,
{VBox "abc", "def"},
{CommandButton label="Press me!"},
{TextField value="Hello", width=2in},
{RectangleGraphic width=18pt, height=6pt}} |
| このタイプの新しいオブジェクトを作成するために |
| 任意の数の子 |
| 当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。 |
| スタイリングの目的のための、この |
| HBox のグラフィカルな子の間の垂直方向の整列方法を指定します。 |
| 固定サイズの子が伸長可能な子を収縮するかどうかを設定します。 |
| クローンを作成し、クローン自体を返します。 |
| start-bound と end-bound 間の、このグラフィック内に含まれる選択したテキストを取得します。 |
| グラフィックにパジネーションを適用します。 |
このタイプの新しいオブジェクトを作成するために
注意事項
任意の数の子
注意事項
当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。
オーバーライド
説明
例
| 例 | |
![]() | |
{let hb:HBox =
{spaced-hbox
vstretch? = 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",
height = 5cm,
hb
}
{CheckButton
label = "framelike-stretch?",
value = hb.framelike-stretch?,
{on ValueFinished at cb:CheckButton do
set hb.framelike-stretch? = cb.value
}
}
|
スタイリングの目的のための、この
説明
オーバーライド
HBox のグラフィカルな子の間の垂直方向の整列方法を指定します。
説明
例
| 例 | |
{HBox spacing=4pt,
{HBox
"None", {TextField value="Hello"},
{RectangleGraphic width=24pt, height=18pt}},
{HBox valign="bottom",
"Bottom", {TextField value="Hello"},
{RectangleGraphic width=24pt, height=18pt}},
{HBox valign="center",
"Center", {TextField value="Hello"},
{RectangleGraphic width=24pt, height=18pt}},
{HBox valign="top",
"Top", {TextField value="Hello"},
{RectangleGraphic width=24pt, height=18pt}},
{HBox valign="origin",
"Origin", {TextField value="Hello"},
{RectangleGraphic width=24pt, height=18pt}}} |
固定サイズの子が伸長可能な子を収縮するかどうかを設定します。
説明
クローンを作成し、クローン自体を返します。
オーバーライド
{{compile-time-type-of self}.clone-appearance-from self, fixup}
start-bound と end-bound 間の、このグラフィック内に含まれる選択したテキストを取得します。
オーバーライド
グラフィックにパジネーションを適用します。
戻り値
プログラミング注意事項
オーバーライド
{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
}
}
}
注意事項