pub struct VerticalTilingWidget<S: DynamicWidget, T: DynamicWidget> { /* private fields */ }Implementations§
Source§impl<S: DynamicWidget, T: DynamicWidget> VerticalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> VerticalTilingWidget<S, T>
Sourcepub fn build(child1: S, child2: T) -> Result<Self, String>
pub fn build(child1: S, child2: T) -> Result<Self, String>
Builds vertical tiling widget with two children.
child1 will be displayed on the top, child2 on the bottom.
§Errors
Returns an error if the width of both children does not match.
pub const fn top(&self) -> &S
pub const fn top_mut(&mut self) -> &mut S
pub const fn bottom(&self) -> &T
pub const fn bottom_mut(&mut self) -> &mut T
Source§impl<S: StaticWidget, T: StaticWidget> VerticalTilingWidget<S, T>
impl<S: StaticWidget, T: StaticWidget> VerticalTilingWidget<S, T>
Trait Implementations§
Source§impl<S: DynamicWidget, T: DynamicWidget> Deref for VerticalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> Deref for VerticalTilingWidget<S, T>
Source§impl<S: DynamicWidget, T: DynamicWidget> DerefMut for VerticalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> DerefMut for VerticalTilingWidget<S, T>
Source§impl<S: DynamicWidget, T: DynamicWidget> DynamicWidget for VerticalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> DynamicWidget for VerticalTilingWidget<S, T>
Source§fn width_characters(&self) -> usize
fn width_characters(&self) -> usize
Returns the width of the display in characters.
Source§fn height_characters(&self) -> usize
fn height_characters(&self) -> usize
Returns the height of the display in characters.
Source§fn string_data(&self) -> StringData
fn string_data(&self) -> StringData
Returns a string representation.
The first vector contains rows.
The vectors inside/rows contain individual characters.
Source§impl<S: StaticWidget, T: StaticWidget> StaticWidget for VerticalTilingWidget<S, T>
impl<S: StaticWidget, T: StaticWidget> StaticWidget for VerticalTilingWidget<S, T>
Source§const WIDTH_CHARACTERS: usize = S::WIDTH_CHARACTERS
const WIDTH_CHARACTERS: usize = S::WIDTH_CHARACTERS
Width of the display in characters.
Source§const HEIGHT_CHARACTERS: usize
const HEIGHT_CHARACTERS: usize
Height of the display in characters.
Source§impl<S: DynamicWidget, T: DynamicWidget> TwoWidget<S, T> for VerticalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> TwoWidget<S, T> for VerticalTilingWidget<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for VerticalTilingWidget<S, T>
impl<S, T> RefUnwindSafe for VerticalTilingWidget<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for VerticalTilingWidget<S, T>
impl<S, T> Sync for VerticalTilingWidget<S, T>
impl<S, T> Unpin for VerticalTilingWidget<S, T>
impl<S, T> UnwindSafe for VerticalTilingWidget<S, T>where
S: UnwindSafe,
T: UnwindSafe,
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