[−][src]Struct tuikit::container::VSplit
VSplit will split the area vertically. It will
- Count the total height(basis) of the split items it contains
- Judge if the current height is enough or not for the split items
- shrink/grow the split items according to their factors / (total factors)
- If still not enough room, the last one(s) would be set height 0
Methods
impl<'a> VSplit<'a>
[src]
pub fn split(self, split: impl Split + 'a) -> Self
[src]
pub fn basis(self, basis: impl Into<Size>) -> Self
[src]
pub fn grow(self, grow: usize) -> Self
[src]
pub fn shrink(self, shrink: usize) -> Self
[src]
Trait Implementations
impl<'a> Split for VSplit<'a>
[src]
fn get_basis(&self) -> Size
[src]
fn get_grow(&self) -> usize
[src]
fn get_shrink(&self) -> usize
[src]
fn inner_size(&self) -> (Size, Size)
[src]
get the default size of inner content, will be used if basis
is Default
impl<'a> Draw for VSplit<'a>
[src]
fn draw(&self, canvas: &mut dyn Canvas) -> Result<()>
[src]
fn size_hint(&self) -> (Option<usize>, Option<usize>)
[src]
impl<'a> Default for VSplit<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,