[−][src]Struct tuikit::prelude::HSplit
HSplit will split the area horizontally. It will
- Count the total width(basis) of the split items it contains
- Judge if the current width 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 width 0
Implementations
impl<'a, Message> HSplit<'a, Message>
[src]
pub fn split(self, split: impl Split<Message> + '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, Message> Default for HSplit<'a, Message>
[src]
impl<'a, Message> Draw for HSplit<'a, Message>
[src]
impl<'a, Message> Split<Message> for HSplit<'a, Message>
[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]
impl<'a, Message> Widget<Message> for HSplit<'a, Message>
[src]
Auto Trait Implementations
impl<'a, Message = ()> !RefUnwindSafe for HSplit<'a, Message>
impl<'a, Message = ()> !Send for HSplit<'a, Message>
impl<'a, Message = ()> !Sync for HSplit<'a, Message>
impl<'a, Message> Unpin for HSplit<'a, Message>
impl<'a, Message = ()> !UnwindSafe for HSplit<'a, Message>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,