Struct md_tui::nodes::image::ImageComponent
source · pub struct ImageComponent { /* private fields */ }Implementations§
source§impl ImageComponent
impl ImageComponent
pub fn new<T: ToString>( image: DynamicImage, height: u32, alt_text: T, ) -> Option<Self>
pub fn image_mut(&mut self) -> &mut Box<dyn StatefulProtocol>
pub fn set_scroll_offset(&mut self, offset: u16)
pub fn scroll_offset(&self) -> u16
pub fn y_offset(&self) -> u16
pub fn height(&self) -> u16
Trait Implementations§
source§impl ComponentProps for ImageComponent
impl ComponentProps for ImageComponent
Auto Trait Implementations§
impl Freeze for ImageComponent
impl !RefUnwindSafe for ImageComponent
impl Send for ImageComponent
impl Sync for ImageComponent
impl Unpin for ImageComponent
impl !UnwindSafe for ImageComponent
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> 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