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