[][src]Struct skia_bindings::SkIRect

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

Fields

fLeft: i32fTop: i32fRight: i32fBottom: i32

Methods

impl SkIRect[src]

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

pub unsafe fn MakeWH(w: i32, h: i32) -> SkIRect[src]

pub unsafe fn MakeSize(size: *const SkISize) -> SkIRect[src]

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

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

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

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

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

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

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

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

pub unsafe fn topLeft(&self) -> SkIPoint[src]

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

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

pub unsafe fn size(&self) -> SkISize[src]

pub unsafe fn width64(&self) -> i64[src]

pub unsafe fn height64(&self) -> i64[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub unsafe fn adjust(&mut self, dL: i32, dT: i32, dR: i32, dB: i32)[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub unsafe fn EmptyIRect() -> *const SkIRect[src]

Trait Implementations

impl Clone for SkIRect[src]

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

Performs copy-assignment from source. Read more

impl Copy for SkIRect[src]

impl Debug for SkIRect[src]

Auto Trait Implementations

impl Sync for SkIRect

impl Send for SkIRect

impl Unpin for SkIRect

impl RefUnwindSafe for SkIRect

impl UnwindSafe for SkIRect

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]