Type Alias Paint

pub type Paint = Handle<SkPaint>;

Aliased Type§

struct Paint(/* private fields */);

Implementations

§

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.

pub fn is_src_over(&self) -> bool

pub fn set_blend_mode(&mut self, mode: SkBlendMode) -> &mut Handle<SkPaint>

pub fn blender(&self) -> Option<RCHandle<SkBlender>>

pub fn set_blender( &mut self, blender: impl Into<Option<RCHandle<SkBlender>>>, ) -> &mut Handle<SkPaint>

pub fn path_effect(&self) -> Option<RCHandle<SkPathEffect>>

pub fn set_path_effect( &mut self, path_effect: impl Into<Option<RCHandle<SkPathEffect>>>, ) -> &mut Handle<SkPaint>

pub fn mask_filter(&self) -> Option<RCHandle<SkMaskFilter>>

pub fn set_mask_filter( &mut self, mask_filter: impl Into<Option<RCHandle<SkMaskFilter>>>, ) -> &mut Handle<SkPaint>

pub fn image_filter(&self) -> Option<RCHandle<SkImageFilter>>

pub fn set_image_filter( &mut self, image_filter: impl Into<Option<RCHandle<SkImageFilter>>>, ) -> &mut Handle<SkPaint>

pub fn nothing_to_draw(&self) -> bool

Trait Implementations

§

impl<N> AsRef<Handle<N>> for Handle<N>
where N: NativeDrop,

§

fn as_ref(&self) -> &Handle<N>

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<N> Clone for Handle<N>
where N: NativeDrop + NativeClone,

§

fn clone(&self) -> Handle<N>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Handle<SkPaint>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Handle<SkPaint>

§

fn default() -> Handle<SkPaint>

Returns the “default value” for a type. Read more
§

impl<N> Drop for Handle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> Hash for Handle<N>
where N: NativeDrop + NativeHash,

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<N> PartialEq for Handle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &Handle<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<N> RefWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap_ref(native: &N) -> &Handle<N>

§

fn wrap_mut(native: &mut N) -> &mut Handle<N>

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl<N> ValueWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap(native: N) -> Handle<N>
where N: NativeDrop,

§

fn unwrap(self) -> N

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl Send for Handle<SkPaint>

§

impl Sync for Handle<SkPaint>