Struct skia_bindings::SkPaint

source ·
#[repr(C)]
pub struct SkPaint { pub fPathEffect: sk_sp<SkPathEffect>, pub fShader: sk_sp<SkShader>, pub fMaskFilter: sk_sp<SkMaskFilter>, pub fColorFilter: sk_sp<SkColorFilter>, pub fImageFilter: sk_sp<SkImageFilter>, pub fBlender: sk_sp<SkBlender>, pub fColor4f: SkColor4f, pub fWidth: SkScalar, pub fMiterLimit: SkScalar, pub __bindgen_anon_1: SkPaint__bindgen_ty_1, }

Fields§

§fPathEffect: sk_sp<SkPathEffect>§fShader: sk_sp<SkShader>§fMaskFilter: sk_sp<SkMaskFilter>§fColorFilter: sk_sp<SkColorFilter>§fImageFilter: sk_sp<SkImageFilter>§fBlender: sk_sp<SkBlender>§fColor4f: SkColor4f§fWidth: SkScalar§fMiterLimit: SkScalar§__bindgen_anon_1: SkPaint__bindgen_ty_1

Implementations§

source§

impl SkPaint

source

pub unsafe fn reset(&mut self)

source

pub unsafe fn setStyle(&mut self, style: SkPaint_Style)

source

pub unsafe fn setStroke(&mut self, arg1: bool)

source

pub unsafe fn setColor(&mut self, color: SkColor)

source

pub unsafe fn setColor1( &mut self, color: *const SkColor4f, colorSpace: *mut SkColorSpace )

source

pub unsafe fn setAlphaf(&mut self, a: f32)

source

pub unsafe fn setARGB(&mut self, a: U8CPU, r: U8CPU, g: U8CPU, b: U8CPU)

source

pub unsafe fn setStrokeWidth(&mut self, width: SkScalar)

source

pub unsafe fn setStrokeMiter(&mut self, miter: SkScalar)

source

pub unsafe fn setStrokeCap(&mut self, cap: SkPaint_Cap)

source

pub unsafe fn setStrokeJoin(&mut self, join: SkPaint_Join)

source

pub unsafe fn refShader(&self) -> sk_sp<SkShader>

source

pub unsafe fn setShader(&mut self, shader: sk_sp<SkShader>)

source

pub unsafe fn refColorFilter(&self) -> sk_sp<SkColorFilter>

source

pub unsafe fn setColorFilter(&mut self, colorFilter: sk_sp<SkColorFilter>)

source

pub unsafe fn asBlendMode(&self) -> [u32; 2]

source

pub unsafe fn getBlendMode_or(&self, defaultMode: SkBlendMode) -> SkBlendMode

source

pub unsafe fn isSrcOver(&self) -> bool

source

pub unsafe fn setBlendMode(&mut self, mode: SkBlendMode)

source

pub unsafe fn refBlender(&self) -> sk_sp<SkBlender>

source

pub unsafe fn setBlender(&mut self, blender: sk_sp<SkBlender>)

source

pub unsafe fn refPathEffect(&self) -> sk_sp<SkPathEffect>

source

pub unsafe fn setPathEffect(&mut self, pathEffect: sk_sp<SkPathEffect>)

source

pub unsafe fn refMaskFilter(&self) -> sk_sp<SkMaskFilter>

source

pub unsafe fn setMaskFilter(&mut self, maskFilter: sk_sp<SkMaskFilter>)

source

pub unsafe fn refImageFilter(&self) -> sk_sp<SkImageFilter>

source

pub unsafe fn setImageFilter(&mut self, imageFilter: sk_sp<SkImageFilter>)

source

pub unsafe fn nothingToDraw(&self) -> bool

source

pub unsafe fn canComputeFastBounds(&self) -> bool

source

pub unsafe fn computeFastBounds( &self, orig: *const SkRect, storage: *mut SkRect ) -> *const SkRect

source

pub unsafe fn doComputeFastBounds( &self, orig: *const SkRect, storage: *mut SkRect, style: SkPaint_Style ) -> *const SkRect

source

pub unsafe fn new() -> Self

source

pub unsafe fn new1( color: *const SkColor4f, colorSpace: *mut SkColorSpace ) -> Self

source

pub unsafe fn new2(paint: *const SkPaint) -> Self

source

pub unsafe fn new3(paint: *mut SkPaint) -> Self

source

pub unsafe fn destruct(&mut self)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.