[][src]Struct neutrino::widgets::image::ImageState

pub struct ImageState { /* fields omitted */ }

The state of an Image

Fields

data: String
extension: String
background: String
keep_ratio_aspect: bool
stretched: bool
style: String

Methods

impl ImageState[src]

pub fn data(&self) -> &str[src]

Get the base64 encoded image data

pub fn extension(&self) -> &str[src]

Get the extension

pub fn background(&self) -> &str[src]

Get the background color

pub fn keep_ratio_aspect(&self) -> bool[src]

Get the keep_ratio_aspect flag

pub fn stretched(&self) -> bool[src]

Get the stretched flag

pub fn style(&self) -> &str[src]

Get the style

pub fn set_data(&mut self, data: &str)[src]

Set the base64 encoded image data

pub fn set_extension(&mut self, extension: &str)[src]

Set the extension

pub fn set_background(&mut self, background: &str)[src]

Set the background color

pub fn set_keep_ratio_aspect(&mut self, keep_ratio_aspect: bool)[src]

Set the keep_ratio_aspect flag

pub fn set_stretched(&mut self, stretched: bool)[src]

Set the stretched flag

pub fn set_style(&mut self, style: &str)[src]

Set the style

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,