pub enum SplitType {
FullEmpty,
FullPlain,
FullDouble,
FullThick,
FullQuadrantInside,
FullQuadrantOutside,
Scroll,
Widget,
}Expand description
Render variants for the splitter.
Variants§
FullEmpty
Render a full splitter between the widgets. Reduces the area for each widget. Renders a blank border.
FullPlain
Render a full splitter between the widgets. Reduces the area for each widget. Renders a plain line border.
FullDouble
Render a full splitter between the widgets. Reduces the area for each widget. Renders a double line border.
FullThick
Render a full splitter between the widgets. Reduces the area for each widget. Renders a thick line border.
FullQuadrantInside
Render a full splitter between the widgets. Reduces the area for each widget. Renders a border with a single line on the inside of a half block.
FullQuadrantOutside
Render a full splitter between the widgets. Reduces the area for each widget. Renders a border with a single line on the outside of a half block.
Scroll
Render a minimal splitter, consisting just the two marker chars rendered over the left/top widget.
If the left widget has a Scroll in that area this will integrate
nicely. You will have to set start_margin with Scroll, then
Scroll can adjust its rendering to leave space for the markers.
And you want to set a mark_offset here.
The widget will get the full area, only the marker is used for mouse interactions.
Widget
Don’t render a splitter, fully manual mode.
The widget will have the full area, but the event-handling will
use the last column/row of the widget for moving the split.
This can be adjusted if you change state.split[n] which provides
the active area.
Implementations§
Trait Implementations§
impl Copy for SplitType
impl Eq for SplitType
impl StructuralPartialEq for SplitType
Auto Trait Implementations§
impl Freeze for SplitType
impl RefUnwindSafe for SplitType
impl Send for SplitType
impl Sync for SplitType
impl Unpin for SplitType
impl UnwindSafe for SplitType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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