Separator
組み込みの見た目を持たない、セマンティックな水平または垂直区切り線です。
デモを読み込み中…
separator(SeparatorOrientation::Horizontal).w(240.0)#インポート
quickgui から separator をインポートします。
use quickgui::*;#使い方
separator(SeparatorOrientation::Horizontal).w(240.0)#構成
separator::root
#API リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
separator
ソースを見るpub fn separator(orientation: SeparatorOrientation) -> ElementCreate an unstyled semantic separator root. This shorthand is equivalent to `Separator::new(orientation).root_with(div())`. The caller still declares the rule's extent, because a zero-sized divider is a layout decision rather than a framework default.
Separator
ソースを見るpub const fn new(orientation: SeparatorOrientation) -> SelfDeclare a separator along `orientation`. Horizontal is the default, matching Base UI.
horizontalpub const fn horizontal() -> Self—
Declare a horizontal rule between vertically stacked content.
pub const fn horizontal() -> Selfソースを見るverticalpub const fn vertical() -> Self—
axispub const fn axis(self) -> SeparatorOrientation—
Separator::root_with
ソースを見るpub fn root_with(self, root: Element) -> ElementDecorate an application-owned root without adding layout or appearance.
Separator::root
ソースを見るpub fn root(self) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
