Separator
A semantic horizontal or vertical divider with no built-in visual style.
Loading interactive demo…
separator(SeparatorOrientation::Horizontal).w(240.0)#Import
Import separator from quickgui.
use quickgui::*;#Usage
separator(SeparatorOrientation::Horizontal).w(240.0)#Anatomy
separator::root
#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
separator
View sourcepub 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
View sourcepub 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() -> SelfView sourceverticalpub const fn vertical() -> Self—
Declare a vertical rule between horizontally arranged content.
pub const fn vertical() -> SelfView sourceaxispub const fn axis(self) -> SeparatorOrientation—
Separator::root_with
View sourcepub fn root_with(self, root: Element) -> ElementDecorate an application-owned root without adding layout or appearance.
Separator::root
View sourcepub fn root(self) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
