pub struct Paint { /* private fields */ }Trait Implementations§
Source§impl Paint for Paint
impl Paint for Paint
type ColorSourceFragment = ColorSourceFragment
type ImageFilterFragment = ImageFilterFragment
type Texture = ImpellerTexture
Source§fn set_color(&mut self, color: impl Into<Color>)
fn set_color(&mut self, color: impl Into<Color>)
Sets the paint color for stroking or filling.
Source§fn set_blend_mode(&mut self, blend_mode: BlendMode)
fn set_blend_mode(&mut self, blend_mode: BlendMode)
Sets the paint blend mode.
Source§fn set_draw_style(&mut self, draw_style: DrawStyle)
fn set_draw_style(&mut self, draw_style: DrawStyle)
Set the paint draw style.
Source§fn set_stroke_cap(&mut self, cap: StrokeCap)
fn set_stroke_cap(&mut self, cap: StrokeCap)
Sets how strokes rendered using this paint are capped.
Source§fn set_stroke_join(&mut self, join: StrokeJoin)
fn set_stroke_join(&mut self, join: StrokeJoin)
Sets how strokes rendered using this paint are joined.
Source§fn set_stroke_width(&mut self, width: f32)
fn set_stroke_width(&mut self, width: f32)
Sets the width of the strokes rendered using this paint.
Source§fn set_stroke_miter(&mut self, miter: f32)
fn set_stroke_miter(&mut self, miter: f32)
Sets the miter limit of the strokes rendered using this paint.
Source§fn set_color_source(
&mut self,
color_source: ColorSource<Self::Texture, ColorSourceFragment>,
)
fn set_color_source( &mut self, color_source: ColorSource<Self::Texture, ColorSourceFragment>, )
Sets the color source of the paint.
Source§fn set_color_filter(&mut self, color_filter: ColorFilter)
fn set_color_filter(&mut self, color_filter: ColorFilter)
Sets the color filter of the paint.
Source§fn set_image_filter(&mut self, image_filter: ImageFilter<ImageFilterFragment>)
fn set_image_filter(&mut self, image_filter: ImageFilter<ImageFilterFragment>)
Sets the image filter of a paint. Read more
Source§fn set_mask_filter(&mut self, mask_filter: MaskFilter)
fn set_mask_filter(&mut self, mask_filter: MaskFilter)
Sets the mask filter of a paint. Read more
fn color(color: impl Into<Color>) -> Self
fn stroke_color(color: impl Into<Color>, stroke_width: f32) -> Self
fn color_source( color_source: ColorSource<Self::Texture, Self::ColorSourceFragment>, ) -> Self
fn with_color(self, color: impl Into<Color>) -> Self
fn with_blend_mode(self, blend_mode: BlendMode) -> Self
fn with_draw_style(self, draw_style: DrawStyle) -> Self
fn with_stroke_cap(self, cap: StrokeCap) -> Self
fn with_stroke_join(self, join: StrokeJoin) -> Self
fn with_stroke_width(self, width: f32) -> Self
fn with_stroke_miter(self, miter: f32) -> Self
fn with_color_source( self, color_source: ColorSource<Self::Texture, Self::ColorSourceFragment>, ) -> Self
fn with_color_filter(self, color_filter: ColorFilter) -> Self
fn with_image_filter( self, image_filter: ImageFilter<Self::ImageFilterFragment>, ) -> Self
fn with_mask_filter(self, mask_filter: MaskFilter) -> Self
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> PaintObject for Pwhere
P: Paint,
impl<P> PaintObject for Pwhere
P: Paint,
fn with_color(self: Box<P>, color: Color) -> Box<dyn PaintObject>
Source§fn set_blend_mode(&mut self, blend_mode: BlendMode)
fn set_blend_mode(&mut self, blend_mode: BlendMode)
Sets the paint blend mode.
fn with_blend_mode(self: Box<P>, blend_mode: BlendMode) -> Box<dyn PaintObject>
Source§fn set_draw_style(&mut self, draw_style: DrawStyle)
fn set_draw_style(&mut self, draw_style: DrawStyle)
Set the paint draw style.
fn with_draw_style(self: Box<P>, draw_style: DrawStyle) -> Box<dyn PaintObject>
Source§fn set_stroke_cap(&mut self, cap: StrokeCap)
fn set_stroke_cap(&mut self, cap: StrokeCap)
Sets how strokes rendered using this paint are capped.
fn with_stroke_cap(self: Box<P>, cap: StrokeCap) -> Box<dyn PaintObject>
Source§fn set_stroke_join(&mut self, join: StrokeJoin)
fn set_stroke_join(&mut self, join: StrokeJoin)
Sets how strokes rendered using this paint are joined.
fn with_stroke_join(self: Box<P>, join: StrokeJoin) -> Box<dyn PaintObject>
Source§fn set_stroke_width(&mut self, width: f32)
fn set_stroke_width(&mut self, width: f32)
Sets the width of the strokes rendered using this paint.
fn with_stroke_width(self: Box<P>, width: f32) -> Box<dyn PaintObject>
Source§fn set_stroke_miter(&mut self, miter: f32)
fn set_stroke_miter(&mut self, miter: f32)
Sets the miter limit of the strokes rendered using this paint.
fn with_stroke_miter(self: Box<P>, miter: f32) -> Box<dyn PaintObject>
Source§fn set_color_source(
&mut self,
color_source: ColorSource<Arc<dyn TextureObject>, Box<dyn ColorSourceFragmentObject>>,
)
fn set_color_source( &mut self, color_source: ColorSource<Arc<dyn TextureObject>, Box<dyn ColorSourceFragmentObject>>, )
Sets the color source of the paint.
fn with_color_source( self: Box<P>, color_source: ColorSource<Arc<dyn TextureObject>, Box<dyn ColorSourceFragmentObject>>, ) -> Box<dyn PaintObject>
Source§fn set_color_filter(&mut self, color_filter: ColorFilter)
fn set_color_filter(&mut self, color_filter: ColorFilter)
Sets the color filter of the paint.
fn with_color_filter( self: Box<P>, color_filter: ColorFilter, ) -> Box<dyn PaintObject>
Source§fn set_image_filter(
&mut self,
image_filter: ImageFilter<Box<dyn ImageFilterFragmentObject>>,
)
fn set_image_filter( &mut self, image_filter: ImageFilter<Box<dyn ImageFilterFragmentObject>>, )
Sets the image filter of a paint. Read more
fn with_image_filter( self: Box<P>, image_filter: ImageFilter<Box<dyn ImageFilterFragmentObject>>, ) -> Box<dyn PaintObject>
Source§fn set_mask_filter(&mut self, mask_filter: MaskFilter)
fn set_mask_filter(&mut self, mask_filter: MaskFilter)
Sets the mask filter of a paint. Read more