pub struct DividerStyle {
pub color: Color,
pub thickness: f32,
pub length: f32,
pub dash: f32,
pub gap: f32,
}Expand description
Fields§
§color: ColorSegment fill color.
thickness: f32Cross-axis thickness in logical pixels.
length: f32Main-axis intrinsic length in logical pixels.
dash: f32Dashed segment length in logical pixels.
gap: f32Space between dashed or dotted segments in logical pixels.
Implementations§
Source§impl DividerStyle
impl DividerStyle
Sourcepub fn from_theme(theme: Theme) -> Self
pub fn from_theme(theme: Theme) -> Self
Resolves the default separator color from theme.
Geometry remains fixed at 1 × 160 logical pixels, with 10-pixel
dashes and 6-pixel gaps.
§Examples
use ailloli_ui_core::Theme;
use ailloli_ui_widgets::controls::DividerStyle;
let style = DividerStyle::from_theme(Theme::dark());
assert_eq!(style.dash, 10.0);
assert_eq!(style.gap, 6.0);Trait Implementations§
Source§impl Clone for DividerStyle
impl Clone for DividerStyle
Source§fn clone(&self) -> DividerStyle
fn clone(&self) -> DividerStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DividerStyle
impl Debug for DividerStyle
Source§impl Default for DividerStyle
impl Default for DividerStyle
Source§impl PartialEq for DividerStyle
impl PartialEq for DividerStyle
impl StructuralPartialEq for DividerStyle
Auto Trait Implementations§
impl Freeze for DividerStyle
impl RefUnwindSafe for DividerStyle
impl Send for DividerStyle
impl Sync for DividerStyle
impl Unpin for DividerStyle
impl UnwindSafe for DividerStyle
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.