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