[−][src]Struct skia_bindings::SkPaint
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: SkColor4f
fWidth: SkScalar
fMiterLimit: 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 setFilterQuality(&mut self, quality: SkFilterQuality)
[src]
pub unsafe fn setStyle(&mut self, style: SkPaint_Style)
[src]
pub unsafe fn setColor(&mut self, color: SkColor)
[src]
pub unsafe fn setColor1(
&mut self,
color: *const SkColor4f,
colorSpace: *mut SkColorSpace
)
[src]
&mut self,
color: *const SkColor4f,
colorSpace: *mut SkColorSpace
)
pub unsafe fn setAlphaf(&mut self, a: f32)
[src]
pub unsafe fn setARGB(&mut self, a: U8CPU, r: U8CPU, g: U8CPU, b: U8CPU)
[src]
pub unsafe fn setStrokeWidth(&mut self, width: SkScalar)
[src]
pub unsafe fn setStrokeMiter(&mut self, miter: SkScalar)
[src]
pub unsafe fn setStrokeCap(&mut self, cap: SkPaint_Cap)
[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]
&self,
src: *const SkPath,
dst: *mut SkPath,
cullRect: *const SkRect,
resScale: SkScalar
) -> bool
pub unsafe fn refShader(&self) -> sk_sp<SkShader>
[src]
pub unsafe fn setShader(&mut self, shader: sk_sp<SkShader>)
[src]
pub unsafe fn refColorFilter(&self) -> sk_sp<SkColorFilter>
[src]
pub unsafe fn setColorFilter(&mut self, colorFilter: sk_sp<SkColorFilter>)
[src]
pub unsafe fn refPathEffect(&self) -> sk_sp<SkPathEffect>
[src]
pub unsafe fn setPathEffect(&mut self, pathEffect: sk_sp<SkPathEffect>)
[src]
pub unsafe fn refMaskFilter(&self) -> sk_sp<SkMaskFilter>
[src]
pub unsafe fn setMaskFilter(&mut self, maskFilter: sk_sp<SkMaskFilter>)
[src]
pub unsafe fn refImageFilter(&self) -> sk_sp<SkImageFilter>
[src]
pub unsafe fn setImageFilter(&mut self, imageFilter: sk_sp<SkImageFilter>)
[src]
pub unsafe fn nothingToDraw(&self) -> bool
[src]
pub unsafe fn canComputeFastBounds(&self) -> bool
[src]
pub unsafe fn doComputeFastBounds(
&self,
orig: *const SkRect,
storage: *mut SkRect,
style: SkPaint_Style
) -> *const SkRect
[src]
&self,
orig: *const SkRect,
storage: *mut SkRect,
style: SkPaint_Style
) -> *const SkRect
pub unsafe fn new() -> Self
[src]
pub unsafe fn new1(
color: *const SkColor4f,
colorSpace: *mut SkColorSpace
) -> Self
[src]
color: *const SkColor4f,
colorSpace: *mut SkColorSpace
) -> Self
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 !Send for SkPaint
impl Unpin for SkPaint
impl !Sync for SkPaint
impl !RefUnwindSafe for SkPaint
impl UnwindSafe for SkPaint
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,