[][src]Struct skia_bindings::SkPaint

#[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 fDrawLooper: sk_sp<SkDrawLooper>,
    pub fImageFilter: sk_sp<SkImageFilter>,
    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>fDrawLooper: sk_sp<SkDrawLooper>fImageFilter: sk_sp<SkImageFilter>fColor4f: SkColor4ffWidth: SkScalarfMiterLimit: SkScalar__bindgen_anon_1: SkPaint__bindgen_ty_1

Methods

impl SkPaint[src]

pub unsafe fn getHash(&self) -> u32[src]

pub unsafe fn reset(&mut self)[src]

pub unsafe fn isAntiAlias(&self) -> bool[src]

pub unsafe fn setAntiAlias(&mut self, aa: bool)[src]

pub unsafe fn isDither(&self) -> bool[src]

pub unsafe fn setDither(&mut self, dither: bool)[src]

pub unsafe fn getFilterQuality(&self) -> SkFilterQuality[src]

pub unsafe fn setFilterQuality(&mut self, quality: SkFilterQuality)[src]

pub unsafe fn getStyle(&self) -> SkPaint_Style[src]

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

pub unsafe fn getColor(&self) -> SkColor[src]

pub unsafe fn getColor4f(&self) -> SkColor4f[src]

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

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

pub unsafe fn setColor4f(
    &mut self,
    color: *const SkColor4f,
    colorSpace: *mut SkColorSpace
)
[src]

pub unsafe fn getAlphaf(&self) -> f32[src]

pub unsafe fn getAlpha(&self) -> u8[src]

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

pub unsafe fn setAlpha(&mut self, a: U8CPU)[src]

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

pub unsafe fn getStrokeWidth(&self) -> SkScalar[src]

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

pub unsafe fn getStrokeMiter(&self) -> SkScalar[src]

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

pub unsafe fn getStrokeCap(&self) -> SkPaint_Cap[src]

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

pub unsafe fn getStrokeJoin(&self) -> SkPaint_Join[src]

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

pub unsafe fn getFillPath(
    &self,
    src: *const SkPath,
    dst: *mut SkPath,
    cullRect: *const SkRect,
    resScale: SkScalar
) -> bool
[src]

pub unsafe fn getFillPath1(&self, src: *const SkPath, dst: *mut SkPath) -> bool[src]

pub unsafe fn getShader(&self) -> *mut SkShader[src]

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

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

pub unsafe fn getColorFilter(&self) -> *mut SkColorFilter[src]

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

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

pub unsafe fn getBlendMode(&self) -> SkBlendMode[src]

pub unsafe fn isSrcOver(&self) -> bool[src]

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

pub unsafe fn getPathEffect(&self) -> *mut SkPathEffect[src]

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

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

pub unsafe fn getMaskFilter(&self) -> *mut SkMaskFilter[src]

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

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

pub unsafe fn getImageFilter(&self) -> *mut SkImageFilter[src]

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

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

pub unsafe fn getDrawLooper(&self) -> *mut SkDrawLooper[src]

pub unsafe fn refDrawLooper(&self) -> sk_sp<SkDrawLooper>[src]

pub unsafe fn getLooper(&self) -> *mut SkDrawLooper[src]

pub unsafe fn setDrawLooper(&mut self, drawLooper: sk_sp<SkDrawLooper>)[src]

pub unsafe fn setLooper(&mut self, drawLooper: sk_sp<SkDrawLooper>)[src]

pub unsafe fn nothingToDraw(&self) -> bool[src]

pub unsafe fn canComputeFastBounds(&self) -> bool[src]

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

pub unsafe fn computeFastStrokeBounds(
    &self,
    orig: *const SkRect,
    storage: *mut SkRect
) -> *const SkRect
[src]

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

pub unsafe fn new() -> Self[src]

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

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

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

pub unsafe fn destruct(&mut self)[src]

Auto Trait Implementations

impl !Sync for SkPaint

impl !Send for SkPaint

impl Unpin for SkPaint

impl !RefUnwindSafe for SkPaint

impl !UnwindSafe for SkPaint

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]