[][src]Struct skia_bindings::SkRRect

#[repr(C)]
pub struct SkRRect {
    pub fRect: SkRect,
    pub fRadii: [SkVector; 4],
    pub fType: i32,
}

Fields

fRect: SkRectfRadii: [SkVector; 4]fType: i32

Methods

impl SkRRect[src]

pub unsafe fn getType(&self) -> SkRRect_Type[src]

pub unsafe fn type_(&self) -> SkRRect_Type[src]

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

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

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

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

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

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

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

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

pub unsafe fn getSimpleRadii(&self) -> SkVector[src]

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

pub unsafe fn setRect(&mut self, rect: *const SkRect)[src]

pub unsafe fn MakeEmpty() -> SkRRect[src]

pub unsafe fn MakeRect(r: *const SkRect) -> SkRRect[src]

pub unsafe fn MakeOval(oval: *const SkRect) -> SkRRect[src]

pub unsafe fn MakeRectXY(
    rect: *const SkRect,
    xRad: SkScalar,
    yRad: SkScalar
) -> SkRRect
[src]

pub unsafe fn setOval(&mut self, oval: *const SkRect)[src]

pub unsafe fn setRectXY(
    &mut self,
    rect: *const SkRect,
    xRad: SkScalar,
    yRad: SkScalar
)
[src]

pub unsafe fn setNinePatch(
    &mut self,
    rect: *const SkRect,
    leftRad: SkScalar,
    topRad: SkScalar,
    rightRad: SkScalar,
    bottomRad: SkScalar
)
[src]

pub unsafe fn setRectRadii(
    &mut self,
    rect: *const SkRect,
    radii: *const SkVector
)
[src]

pub unsafe fn rect(&self) -> *const SkRect[src]

pub unsafe fn radii(&self, corner: SkRRect_Corner) -> SkVector[src]

pub unsafe fn getBounds(&self) -> *const SkRect[src]

pub unsafe fn inset(&self, dx: SkScalar, dy: SkScalar, dst: *mut SkRRect)[src]

pub unsafe fn inset1(&mut self, dx: SkScalar, dy: SkScalar)[src]

pub unsafe fn outset(&self, dx: SkScalar, dy: SkScalar, dst: *mut SkRRect)[src]

pub unsafe fn outset1(&mut self, dx: SkScalar, dy: SkScalar)[src]

pub unsafe fn offset(&mut self, dx: SkScalar, dy: SkScalar)[src]

pub unsafe fn makeOffset(&self, dx: SkScalar, dy: SkScalar) -> SkRRect[src]

pub unsafe fn contains(&self, rect: *const SkRect) -> bool[src]

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

pub unsafe fn writeToMemory(&self, buffer: *mut c_void) -> usize[src]

pub unsafe fn readFromMemory(
    &mut self,
    buffer: *const c_void,
    length: usize
) -> usize
[src]

pub unsafe fn transform(
    &self,
    matrix: *const SkMatrix,
    dst: *mut SkRRect
) -> bool
[src]

pub unsafe fn dump(&self, asHex: bool)[src]

pub unsafe fn dump1(&self)[src]

pub unsafe fn dumpHex(&self)[src]

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

pub unsafe fn new1(rrect: *const SkRRect) -> Self[src]

Trait Implementations

impl Clone for SkRRect[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for SkRRect[src]

impl Debug for SkRRect[src]

Auto Trait Implementations

impl Sync for SkRRect

impl Send for SkRRect

impl Unpin for SkRRect

impl RefUnwindSafe for SkRRect

impl UnwindSafe for SkRRect

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]