pub struct SplitPaneStyle {
pub divider_style: Style,
pub divider_focused_style: Style,
pub divider_dragging_style: Style,
pub divider_hover_style: Style,
pub divider_char: Option<&'static str>,
pub divider_size: u16,
pub show_grab_indicator: bool,
}Expand description
Style configuration for the SplitPane component
Fields§
§divider_style: StyleStyle for the divider when not focused
divider_focused_style: StyleStyle for the divider when focused
divider_dragging_style: StyleStyle for the divider when being dragged
divider_hover_style: StyleStyle for the divider when hovered
divider_char: Option<&'static str>Character used for the divider (vertical orientation: ─, horizontal: │)
divider_size: u16Width/height of the divider in cells (default: 1)
show_grab_indicator: boolShow a grab indicator on the divider
Implementations§
Source§impl SplitPaneStyle
impl SplitPaneStyle
Sourcepub fn divider_char(self, char: &'static str) -> Self
pub fn divider_char(self, char: &'static str) -> Self
Set the divider character
Sourcepub fn divider_size(self, size: u16) -> Self
pub fn divider_size(self, size: u16) -> Self
Set the divider size
Trait Implementations§
Source§impl Clone for SplitPaneStyle
impl Clone for SplitPaneStyle
Source§fn clone(&self) -> SplitPaneStyle
fn clone(&self) -> SplitPaneStyle
Returns a duplicate 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
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more