Struct skia_bindings::SkStrokeRec
source · #[repr(C)]pub struct SkStrokeRec {
pub fResScale: SkScalar,
pub fWidth: SkScalar,
pub fMiterLimit: SkScalar,
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
}
Fields§
§fResScale: SkScalar
§fWidth: SkScalar
§fMiterLimit: SkScalar
§_bitfield_align_1: [u16; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
Implementations§
source§impl SkStrokeRec
impl SkStrokeRec
pub fn fCap(&self) -> u32
pub fn set_fCap(&mut self, val: u32)
pub fn fJoin(&self) -> u32
pub fn set_fJoin(&mut self, val: u32)
pub fn fStrokeAndFill(&self) -> u32
pub fn set_fStrokeAndFill(&mut self, val: u32)
pub fn new_bitfield_1( fCap: u32, fJoin: u32, fStrokeAndFill: u32 ) -> __BindgenBitfieldUnit<[u8; 4]>
pub unsafe fn getStyle(&self) -> SkStrokeRec_Style
pub unsafe fn setFillStyle(&mut self)
pub unsafe fn setHairlineStyle(&mut self)
pub unsafe fn setStrokeStyle(&mut self, width: SkScalar, strokeAndFill: bool)
pub unsafe fn applyToPath(&self, dst: *mut SkPath, src: *const SkPath) -> bool
pub unsafe fn applyToPaint(&self, paint: *mut SkPaint)
pub unsafe fn getInflationRadius(&self) -> SkScalar
pub unsafe fn GetInflationRadius( arg1: *const SkPaint, arg2: SkPaint_Style ) -> SkScalar
pub unsafe fn GetInflationRadius1( arg1: SkPaint_Join, miterLimit: SkScalar, arg2: SkPaint_Cap, strokeWidth: SkScalar ) -> SkScalar
pub unsafe fn new(style: SkStrokeRec_InitStyle) -> Self
pub unsafe fn new1( arg1: *const SkPaint, arg2: SkPaint_Style, resScale: SkScalar ) -> Self
pub unsafe fn new2(arg1: *const SkPaint, resScale: SkScalar) -> Self
Trait Implementations§
source§impl Clone for SkStrokeRec
impl Clone for SkStrokeRec
source§fn clone(&self) -> SkStrokeRec
fn clone(&self) -> SkStrokeRec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SkStrokeRec
impl Debug for SkStrokeRec
impl Copy for SkStrokeRec
Auto Trait Implementations§
impl RefUnwindSafe for SkStrokeRec
impl Send for SkStrokeRec
impl Sync for SkStrokeRec
impl Unpin for SkStrokeRec
impl UnwindSafe for SkStrokeRec
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