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
impl SkPaint
pub unsafe fn reset(&mut self)
pub unsafe fn setStyle(&mut self, style: SkPaint_Style)
pub unsafe fn setStroke(&mut self, arg1: bool)
pub unsafe fn setColor(&mut self, color: SkColor)
pub unsafe fn setColor1( &mut self, color: *const SkColor4f, colorSpace: *mut SkColorSpace )
pub unsafe fn setAlphaf(&mut self, a: f32)
pub unsafe fn setARGB(&mut self, a: U8CPU, r: U8CPU, g: U8CPU, b: U8CPU)
pub unsafe fn setStrokeWidth(&mut self, width: SkScalar)
pub unsafe fn setStrokeMiter(&mut self, miter: SkScalar)
pub unsafe fn setStrokeCap(&mut self, cap: SkPaint_Cap)
pub unsafe fn setStrokeJoin(&mut self, join: SkPaint_Join)
pub unsafe fn refShader(&self) -> sk_sp<SkShader>
pub unsafe fn setShader(&mut self, shader: sk_sp<SkShader>)
pub unsafe fn refColorFilter(&self) -> sk_sp<SkColorFilter>
pub unsafe fn setColorFilter(&mut self, colorFilter: sk_sp<SkColorFilter>)
pub unsafe fn asBlendMode(&self) -> [u32; 2]
pub unsafe fn getBlendMode_or(&self, defaultMode: SkBlendMode) -> SkBlendMode
pub unsafe fn isSrcOver(&self) -> bool
pub unsafe fn setBlendMode(&mut self, mode: SkBlendMode)
pub unsafe fn refBlender(&self) -> sk_sp<SkBlender>
pub unsafe fn setBlender(&mut self, blender: sk_sp<SkBlender>)
pub unsafe fn refPathEffect(&self) -> sk_sp<SkPathEffect>
pub unsafe fn setPathEffect(&mut self, pathEffect: sk_sp<SkPathEffect>)
pub unsafe fn refMaskFilter(&self) -> sk_sp<SkMaskFilter>
pub unsafe fn setMaskFilter(&mut self, maskFilter: sk_sp<SkMaskFilter>)
pub unsafe fn refImageFilter(&self) -> sk_sp<SkImageFilter>
pub unsafe fn setImageFilter(&mut self, imageFilter: sk_sp<SkImageFilter>)
pub unsafe fn nothingToDraw(&self) -> bool
pub unsafe fn canComputeFastBounds(&self) -> bool
pub unsafe fn computeFastBounds( &self, orig: *const SkRect, storage: *mut SkRect ) -> *const SkRect
pub unsafe fn doComputeFastBounds( &self, orig: *const SkRect, storage: *mut SkRect, style: SkPaint_Style ) -> *const SkRect
pub unsafe fn new() -> Self
pub unsafe fn new1( color: *const SkColor4f, colorSpace: *mut SkColorSpace ) -> Self
pub unsafe fn new2(paint: *const SkPaint) -> Self
pub unsafe fn new3(paint: *mut SkPaint) -> Self
pub unsafe fn destruct(&mut self)
Auto Trait Implementations§
impl !RefUnwindSafe for SkPaint
impl !Send for SkPaint
impl !Sync for SkPaint
impl Unpin for SkPaint
impl UnwindSafe for SkPaint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more