pub struct HorizontalTilingWidget<S: DynamicWidget, T: DynamicWidget> { /* private fields */ }Implementations§
Source§impl<S: DynamicWidget, T: DynamicWidget> HorizontalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> HorizontalTilingWidget<S, T>
Sourcepub fn build(child1: S, child2: T) -> Result<Self, String>
pub fn build(child1: S, child2: T) -> Result<Self, String>
Builds horizontal tiling widget with two children.
child1 will be displayed on the left, child2 on the right.
§Errors
Returns an error if the height of both children does not match.
pub const fn left(&self) -> &S
pub const fn left_mut(&mut self) -> &mut S
pub const fn right(&self) -> &T
pub const fn right_mut(&mut self) -> &mut T
Source§impl<S: StaticWidget, T: StaticWidget> HorizontalTilingWidget<S, T>
impl<S: StaticWidget, T: StaticWidget> HorizontalTilingWidget<S, T>
Trait Implementations§
Source§impl<S: DynamicWidget, T: DynamicWidget> Deref for HorizontalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> Deref for HorizontalTilingWidget<S, T>
Source§impl<S: DynamicWidget, T: DynamicWidget> DerefMut for HorizontalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> DerefMut for HorizontalTilingWidget<S, T>
Source§impl<S: DynamicWidget, T: DynamicWidget> DynamicWidget for HorizontalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> DynamicWidget for HorizontalTilingWidget<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 HorizontalTilingWidget<S, T>
impl<S: StaticWidget, T: StaticWidget> StaticWidget for HorizontalTilingWidget<S, T>
Source§const WIDTH_CHARACTERS: usize
const WIDTH_CHARACTERS: usize
Width of the display in characters.
Source§const HEIGHT_CHARACTERS: usize = S::HEIGHT_CHARACTERS
const HEIGHT_CHARACTERS: usize = S::HEIGHT_CHARACTERS
Height of the display in characters.
Source§impl<S: DynamicWidget, T: DynamicWidget> TwoWidget<S, T> for HorizontalTilingWidget<S, T>
impl<S: DynamicWidget, T: DynamicWidget> TwoWidget<S, T> for HorizontalTilingWidget<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for HorizontalTilingWidget<S, T>
impl<S, T> RefUnwindSafe for HorizontalTilingWidget<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for HorizontalTilingWidget<S, T>
impl<S, T> Sync for HorizontalTilingWidget<S, T>
impl<S, T> Unpin for HorizontalTilingWidget<S, T>
impl<S, T> UnwindSafe for HorizontalTilingWidget<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