pub struct SplitPaneStyle {
pub resize_bar: ResizeBarStyle,
}Expand description
Styling for the seam shared with super::ResizeBar.
§Examples
use ailloli_ui_widgets::layout::SplitPaneStyle;
let style = SplitPaneStyle::default();
assert_eq!(style.resize_bar.hit_thickness, 8.0);Fields§
§resize_bar: ResizeBarStyleSeam hit geometry, line geometry, and interaction colors.
Implementations§
Source§impl SplitPaneStyle
impl SplitPaneStyle
Sourcepub fn from_theme(theme: Theme) -> Self
pub fn from_theme(theme: Theme) -> Self
Derives seam colors from theme and standard resize geometry.
§Examples
use ailloli_ui_core::Theme;
use ailloli_ui_widgets::layout::SplitPaneStyle;
assert_eq!(SplitPaneStyle::from_theme(Theme::dark()).resize_bar.line_thickness, 2.0);Trait Implementations§
Source§impl Clone for SplitPaneStyle
impl Clone for SplitPaneStyle
Source§fn clone(&self) -> SplitPaneStyle
fn clone(&self) -> SplitPaneStyle
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 SplitPaneStyle
impl Debug for SplitPaneStyle
Source§impl Default for SplitPaneStyle
Derives split-pane styling from [Theme::default].
impl Default for SplitPaneStyle
Derives split-pane styling from [Theme::default].
Source§impl PartialEq for SplitPaneStyle
impl PartialEq for SplitPaneStyle
impl Copy for SplitPaneStyle
impl StructuralPartialEq for SplitPaneStyle
Auto Trait Implementations§
impl Freeze for SplitPaneStyle
impl RefUnwindSafe for SplitPaneStyle
impl Send for SplitPaneStyle
impl Sync for SplitPaneStyle
impl Unpin for SplitPaneStyle
impl UnwindSafe for SplitPaneStyle
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.