[−][src]Struct neutrino::widgets::image::ImageState
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
impl Send for ImageState
impl Unpin for ImageState
impl Sync for ImageState
impl UnwindSafe for ImageState
impl RefUnwindSafe for ImageState
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,