pub enum ResizeConstraint {
Fixed,
ScaleProportional,
ScaleEqual,
}Expand description
How will one split area be resized when resizing the whole split-widget.
Variants§
Fixed
The length of the split-area will stay fixed, if possible.
ScaleProportional
The length of the split-area will scale with the widget. Each area will get a proportional part according to its current length.
ScaleEqual
The length of the split-area will scale with the widget. Each area will get the same proportion of the change.
If you mix this with ScaleProportional this will not work, because I don’t know what you would expect to happen.
Trait Implementations§
Source§impl Clone for ResizeConstraint
impl Clone for ResizeConstraint
Source§fn clone(&self) -> ResizeConstraint
fn clone(&self) -> ResizeConstraint
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 ResizeConstraint
impl Debug for ResizeConstraint
Source§impl Default for ResizeConstraint
impl Default for ResizeConstraint
Source§fn default() -> ResizeConstraint
fn default() -> ResizeConstraint
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResizeConstraint
impl PartialEq for ResizeConstraint
impl Copy for ResizeConstraint
impl Eq for ResizeConstraint
impl StructuralPartialEq for ResizeConstraint
Auto Trait Implementations§
impl Freeze for ResizeConstraint
impl RefUnwindSafe for ResizeConstraint
impl Send for ResizeConstraint
impl Sync for ResizeConstraint
impl Unpin for ResizeConstraint
impl UnwindSafe for ResizeConstraint
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<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
Compare self to
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>
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