pub struct Paint {
pub shader: Shader,
pub blend: BlendMode,
pub anti_alias: AntiAlias,
}Expand description
A paint that can be used to fill or stroke a shape.
Fields§
§shader: ShaderThe shader of the paint.
blend: BlendModeThe blend mode of the paint.
anti_alias: AntiAliasWhether the paint should be anti-aliased.
Trait Implementations§
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin 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