Struct components::widgets::Image
source · [−]pub struct Image {Show 14 fields
pub key: Key,
pub image: Box<dyn ImageProvider>,
pub semantic_label: String,
pub exclude_from_semantics: bool,
pub width: f32,
pub height: f32,
pub color: Color,
pub color_blend_mode: BlendMode,
pub fit: BoxFit,
pub alignment: Box<dyn AlignmentGeometry>,
pub match_text_direction: bool,
pub gapless_playback: bool,
pub is_anti_alias: bool,
pub filter_quality: FilterQuality,
}
Fields
key: Key
image: Box<dyn ImageProvider>
semantic_label: String
exclude_from_semantics: bool
width: f32
height: f32
color: Color
color_blend_mode: BlendMode
fit: BoxFit
alignment: Box<dyn AlignmentGeometry>
match_text_direction: bool
gapless_playback: bool
is_anti_alias: bool
filter_quality: FilterQuality
Trait Implementations
sourceimpl WidgetProperties for Image
impl WidgetProperties for Image
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl !RefUnwindSafe for Image
impl !Send for Image
impl !Sync for Image
impl Unpin for Image
impl !UnwindSafe for Image
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
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
.