本文へスキップ

Separator

組み込みの見た目を持たない、セマンティックな水平または垂直区切り線です。

デモを読み込み中…

#インポート

quickgui から separator をインポートします。

use quickgui::*;

#使い方

separator(SeparatorOrientation::Horizontal).w(240.0)

#構成

  • separator::root

#API リファレンス

項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。

pub fn separator(orientation: SeparatorOrientation) -> Element

Create 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.

pub const fn new(orientation: SeparatorOrientation) -> Self

Declare 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—

Declare a vertical rule between horizontally arranged content.

pub const fn vertical() -> Self
ソースを見る
axispub const fn axis(self) -> SeparatorOrientation—

Configures axis for this part.

pub const fn axis(self) -> SeparatorOrientation
ソースを見る

Separator::root_with

ソースを見る
pub fn root_with(self, root: Element) -> Element

Decorate an application-owned root without adding layout or appearance.

Separator::root

ソースを見る
pub fn root(self) -> Element

Create the unstyled root part. Use [`Self::root_with`] to supply an existing element.