pub struct Divider {
pub vertical: bool,
pub thickness: f32,
pub color: Color,
pub indent: f32,
}Expand description
A thin separator line — horizontal or vertical.
Fields§
§vertical: bool§thickness: f32§color: Color§indent: f32Implementations§
Source§impl Divider
impl Divider
Sourcepub fn new() -> Self
pub fn new() -> Self
A horizontal divider — the common case (D093: new() must exist
wherever named constructors exist).
pub fn horizontal() -> Self
pub fn vertical() -> Self
pub fn color(self, c: Color) -> Self
pub fn thickness(self, t: f32) -> Self
pub fn indent(self, i: f32) -> Self
Trait Implementations§
Source§impl Widget for Divider
impl Widget for Divider
Source§fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
Measure under
ctx.constraints and return a size within them. Read moreSource§fn children(&self) -> Children<'_>
fn children(&self) -> Children<'_>
Declare this widget’s children. Drives every default below.
Source§fn flex_factor(&self) -> f32
fn flex_factor(&self) -> f32
Flex weight inside Row/Column. Wrappers are transparent by default.
Auto Trait Implementations§
impl Freeze for Divider
impl RefUnwindSafe for Divider
impl Send for Divider
impl Sync for Divider
impl Unpin for Divider
impl UnsafeUnpin for Divider
impl UnwindSafe for Divider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<W> FocusApi for W
impl<W> FocusApi for W
Source§fn focus_node(self, node: FocusNode) -> WithFocus<Self>
fn focus_node(self, node: FocusNode) -> WithFocus<Self>
Attach a focus node. This enables focus-ring rendering and explicit
neighbor wiring.