Struct tui_image_rgba_updated::Image [−][src]
pub struct Image<'a> { /* fields omitted */ }
A tui-rs Widget which displays an image.
Implementations
impl<'a> Image<'a>
[src]
impl<'a> Image<'a>
[src]pub fn with_img_fn(
img_fn: impl Fn(usize, usize) -> Result<RgbaImage, Error> + 'static
) -> Image<'a>
[src]
pub fn with_img_fn(
img_fn: impl Fn(usize, usize) -> Result<RgbaImage, Error> + 'static
) -> Image<'a>
[src]Construct an Image widget with a function which can be called to obtain an image of the correct size.
pub fn color_mode(self, color_mode: ColorMode) -> Image<'a>
[src]
pub fn color_mode(self, color_mode: ColorMode) -> Image<'a>
[src]Set the color mode used to render the image.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Image<'a>
impl<'a> !Send for Image<'a>
impl<'a> !Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> !UnwindSafe for Image<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.