Struct components::ui::Paint
source · [−]pub struct Paint {Show 14 fields
pub blend_mode: BlendMode,
pub color: Color,
pub color_filter: Option<ColorFilter>,
pub filter_quality: FilterQuality,
pub image_filter: Option<ImageFilter>,
pub invert_colors: bool,
pub is_antialias: bool,
pub mask_filter: Option<MaskFilter>,
pub shader: Option<Shader>,
pub stroke_cap: StrokeCap,
pub stroke_join: StrokeJoin,
pub stroke_miter_limit: f32,
pub stroke_width: f32,
pub style: PaintingStyle,
}
Fields
blend_mode: BlendMode
color: Color
color_filter: Option<ColorFilter>
filter_quality: FilterQuality
image_filter: Option<ImageFilter>
invert_colors: bool
is_antialias: bool
mask_filter: Option<MaskFilter>
shader: Option<Shader>
stroke_cap: StrokeCap
stroke_join: StrokeJoin
stroke_miter_limit: f32
stroke_width: f32
style: PaintingStyle
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnwindSafe for Paint
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
.