pub type Paint = Handle<SkPaint>;
Aliased Type§
struct Paint(/* private fields */);
Implementations§
Source§impl Paint
impl Paint
pub fn new<'a>( color: impl AsRef<Color4f>, color_space: impl Into<Option<&'a ColorSpace>>, ) -> Paint
pub fn reset(&mut self) -> &mut Self
pub fn is_anti_alias(&self) -> bool
pub fn set_anti_alias(&mut self, anti_alias: bool) -> &mut Self
pub fn is_dither(&self) -> bool
pub fn set_dither(&mut self, dither: bool) -> &mut Self
pub fn style(&self) -> Style
pub fn set_style(&mut self, style: Style) -> &mut Self
pub fn set_stroke(&mut self, stroke: bool) -> &mut Self
pub fn color(&self) -> Color
pub fn color4f(&self) -> Color4f
pub fn set_color(&mut self, color: impl Into<Color>) -> &mut Self
pub fn set_color4f<'a>( &mut self, color: impl AsRef<Color4f>, color_space: impl Into<Option<&'a ColorSpace>>, ) -> &mut Self
pub fn alpha_f(&self) -> f32
pub fn alpha(&self) -> u8
pub fn set_alpha_f(&mut self, alpha: f32) -> &mut Self
pub fn set_alpha(&mut self, alpha: u8) -> &mut Self
pub fn set_argb(&mut self, a: u8, r: u8, g: u8, b: u8) -> &mut Self
pub fn stroke_width(&self) -> scalar
pub fn set_stroke_width(&mut self, width: scalar) -> &mut Self
pub fn stroke_miter(&self) -> scalar
pub fn set_stroke_miter(&mut self, miter: scalar) -> &mut Self
pub fn stroke_cap(&self) -> Cap
pub fn set_stroke_cap(&mut self, cap: Cap) -> &mut Self
pub fn stroke_join(&self) -> Join
pub fn set_stroke_join(&mut self, join: Join) -> &mut Self
pub fn shader(&self) -> Option<Shader>
pub fn set_shader(&mut self, shader: impl Into<Option<Shader>>) -> &mut Self
pub fn color_filter(&self) -> Option<ColorFilter>
pub fn set_color_filter( &mut self, color_filter: impl Into<Option<ColorFilter>>, ) -> &mut Self
pub fn as_blend_mode(&self) -> Option<BlendMode>
pub fn blend_mode_or(&self, default_mode: BlendMode) -> BlendMode
pub fn blend_mode(&self) -> BlendMode
👎Deprecated since 0.42.0: Use as_blend_mode() or blend_mode_or() instead.