[][src]Struct skia_bindings::SkRect

#[repr(C)]
pub struct SkRect {
    pub fLeft: SkScalar,
    pub fTop: SkScalar,
    pub fRight: SkScalar,
    pub fBottom: SkScalar,
}

Fields

fLeft: SkScalarfTop: SkScalarfRight: SkScalarfBottom: SkScalar

Methods

impl SkRect[src]

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

pub unsafe fn MakeWH(w: SkScalar, h: SkScalar) -> SkRect[src]

pub unsafe fn MakeIWH(w: c_int, h: c_int) -> SkRect[src]

pub unsafe fn MakeSize(size: *const SkSize) -> SkRect[src]

pub unsafe fn MakeLTRB(
    l: SkScalar,
    t: SkScalar,
    r: SkScalar,
    b: SkScalar
) -> SkRect
[src]

pub unsafe fn MakeXYWH(
    x: SkScalar,
    y: SkScalar,
    w: SkScalar,
    h: SkScalar
) -> SkRect
[src]

pub unsafe fn Make(size: *const SkISize) -> SkRect[src]

pub unsafe fn Make1(irect: *const SkIRect) -> SkRect[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

pub unsafe fn toQuad(&self, quad: *mut SkPoint)[src]

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

pub unsafe fn set(&mut self, src: *const SkIRect)[src]

pub unsafe fn set1(
    &mut self,
    left: SkScalar,
    top: SkScalar,
    right: SkScalar,
    bottom: SkScalar
)
[src]

pub unsafe fn setLTRB(
    &mut self,
    left: SkScalar,
    top: SkScalar,
    right: SkScalar,
    bottom: SkScalar
)
[src]

pub unsafe fn iset(
    &mut self,
    left: c_int,
    top: c_int,
    right: c_int,
    bottom: c_int
)
[src]

pub unsafe fn isetWH(&mut self, width: c_int, height: c_int)[src]

pub unsafe fn set2(&mut self, pts: *const SkPoint, count: c_int)[src]

pub unsafe fn setBounds(&mut self, pts: *const SkPoint, count: c_int)[src]

pub unsafe fn setBoundsCheck(
    &mut self,
    pts: *const SkPoint,
    count: c_int
) -> bool
[src]

pub unsafe fn setBoundsNoCheck(&mut self, pts: *const SkPoint, count: c_int)[src]

pub unsafe fn set3(&mut self, p0: *const SkPoint, p1: *const SkPoint)[src]

pub unsafe fn setXYWH(
    &mut self,
    x: SkScalar,
    y: SkScalar,
    width: SkScalar,
    height: SkScalar
)
[src]

pub unsafe fn setWH(&mut self, width: SkScalar, height: SkScalar)[src]

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

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

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

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

pub unsafe fn offset1(&mut self, delta: *const SkPoint)[src]

pub unsafe fn offsetTo(&mut self, newX: SkScalar, newY: SkScalar)[src]

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

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

pub unsafe fn intersect(&mut self, r: *const SkRect) -> bool[src]

pub unsafe fn intersect1(
    &mut self,
    left: SkScalar,
    top: SkScalar,
    right: SkScalar,
    bottom: SkScalar
) -> bool
[src]

pub unsafe fn intersect2(&mut self, a: *const SkRect, b: *const SkRect) -> bool[src]

pub unsafe fn intersects(
    &self,
    left: SkScalar,
    top: SkScalar,
    right: SkScalar,
    bottom: SkScalar
) -> bool
[src]

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

pub unsafe fn Intersects(a: *const SkRect, b: *const SkRect) -> bool[src]

pub unsafe fn join(
    &mut self,
    left: SkScalar,
    top: SkScalar,
    right: SkScalar,
    bottom: SkScalar
)
[src]

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

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

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

pub unsafe fn contains(&self, x: SkScalar, y: SkScalar) -> bool[src]

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

pub unsafe fn contains2(&self, r: *const SkIRect) -> bool[src]

pub unsafe fn round(&self, dst: *mut SkIRect)[src]

pub unsafe fn roundOut(&self, dst: *mut SkIRect)[src]

pub unsafe fn roundOut1(&self, dst: *mut SkRect)[src]

pub unsafe fn roundIn(&self, dst: *mut SkIRect)[src]

pub unsafe fn round1(&self) -> SkIRect[src]

pub unsafe fn roundOut2(&self) -> SkIRect[src]

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

pub unsafe fn makeSorted(&self) -> SkRect[src]

pub unsafe fn asScalars(&self) -> *const SkScalar[src]

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

pub unsafe fn dump1(&self)[src]

pub unsafe fn dumpHex(&self)[src]

Trait Implementations

impl Clone for SkRect[src]

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

Performs copy-assignment from source. Read more

impl Copy for SkRect[src]

impl Debug for SkRect[src]

Auto Trait Implementations

impl Sync for SkRect

impl Send for SkRect

impl Unpin for SkRect

impl RefUnwindSafe for SkRect

impl UnwindSafe for SkRect

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]