pub struct Paint {
pub shader: Shader,
pub blend_mode: BlendMode,
pub anti_alias: bool,
pub opacity: f32,
}Expand description
A fill description: the color source, blend mode and anti-aliasing.
Fields§
§shader: Shader§blend_mode: BlendMode§anti_alias: bool§opacity: f32Overall transparency multiplier 0..=1.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin for Paint
impl UnwindSafe for Paint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more