#[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

source

pub fn fCap(&self) -> u32

source

pub fn set_fCap(&mut self, val: u32)

source

pub fn fJoin(&self) -> u32

source

pub fn set_fJoin(&mut self, val: u32)

source

pub fn fStrokeAndFill(&self) -> u32

source

pub fn set_fStrokeAndFill(&mut self, val: u32)

source

pub fn new_bitfield_1( fCap: u32, fJoin: u32, fStrokeAndFill: u32 ) -> __BindgenBitfieldUnit<[u8; 4]>

source

pub unsafe fn getStyle(&self) -> SkStrokeRec_Style

source

pub unsafe fn setFillStyle(&mut self)

source

pub unsafe fn setHairlineStyle(&mut self)

source

pub unsafe fn setStrokeStyle(&mut self, width: SkScalar, strokeAndFill: bool)

source

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

source

pub unsafe fn applyToPaint(&self, paint: *mut SkPaint)

source

pub unsafe fn getInflationRadius(&self) -> SkScalar

source

pub unsafe fn GetInflationRadius( arg1: *const SkPaint, arg2: SkPaint_Style ) -> SkScalar

source

pub unsafe fn GetInflationRadius1( arg1: SkPaint_Join, miterLimit: SkScalar, arg2: SkPaint_Cap, strokeWidth: SkScalar ) -> SkScalar

source

pub unsafe fn new(style: SkStrokeRec_InitStyle) -> Self

source

pub unsafe fn new1( arg1: *const SkPaint, arg2: SkPaint_Style, resScale: SkScalar ) -> Self

source

pub unsafe fn new2(arg1: *const SkPaint, resScale: SkScalar) -> Self

Trait Implementations§

source§

impl Clone for SkStrokeRec

source§

fn clone(&self) -> SkStrokeRec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SkStrokeRec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for SkStrokeRec

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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.