Struct components::painting::DecorationImage
source · [−]pub struct DecorationImage {
pub alignment: Box<dyn AlignmentGeometry>,
pub center_slice: Option<Rect>,
pub color_filter: Option<ColorFilter>,
pub filter_quality: FilterQuality,
pub fit: BoxFit,
pub image: Box<dyn ImageProvider>,
pub invert_colors: bool,
pub is_anti_alias: bool,
pub match_text_direction: bool,
pub opacity: f32,
pub repeat: ImageRepeat,
pub scale: f32,
}
Fields
alignment: Box<dyn AlignmentGeometry>
center_slice: Option<Rect>
color_filter: Option<ColorFilter>
filter_quality: FilterQuality
fit: BoxFit
image: Box<dyn ImageProvider>
invert_colors: bool
is_anti_alias: bool
match_text_direction: bool
opacity: f32
repeat: ImageRepeat
scale: f32
Auto Trait Implementations
impl !RefUnwindSafe for DecorationImage
impl !Send for DecorationImage
impl !Sync for DecorationImage
impl Unpin for DecorationImage
impl !UnwindSafe for DecorationImage
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
.