[][src]Struct skia_bindings::SkRegion

#[repr(C)]
pub struct SkRegion {
    pub fBounds: SkIRect,
    pub fRunHead: *mut SkRegion_RunHead,
}

Fields

fBounds: SkIRectfRunHead: *mut SkRegion_RunHead

Methods

impl SkRegion[src]

pub unsafe fn set(&mut self, src: *const SkRegion) -> bool[src]

pub unsafe fn swap(&mut self, other: *mut SkRegion)[src]

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

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

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

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

pub unsafe fn computeRegionComplexity(&self) -> c_int[src]

pub unsafe fn getBoundaryPath(&self, path: *mut SkPath) -> bool[src]

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

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

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

pub unsafe fn setRects(&mut self, rects: *const SkIRect, count: c_int) -> bool[src]

pub unsafe fn setRegion(&mut self, region: *const SkRegion) -> bool[src]

pub unsafe fn setPath(
    &mut self,
    path: *const SkPath,
    clip: *const SkRegion
) -> bool
[src]

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

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

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

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

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

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

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

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

pub unsafe fn quickReject1(&self, rgn: *const SkRegion) -> bool[src]

pub unsafe fn translate(&mut self, dx: c_int, dy: c_int)[src]

pub unsafe fn translate1(&self, dx: c_int, dy: c_int, dst: *mut SkRegion)[src]

pub unsafe fn op(&mut self, rect: *const SkIRect, op: SkRegion_Op) -> bool[src]

pub unsafe fn op1(
    &mut self,
    left: c_int,
    top: c_int,
    right: c_int,
    bottom: c_int,
    op: SkRegion_Op
) -> bool
[src]

pub unsafe fn op2(&mut self, rgn: *const SkRegion, op: SkRegion_Op) -> bool[src]

pub unsafe fn op3(
    &mut self,
    rect: *const SkIRect,
    rgn: *const SkRegion,
    op: SkRegion_Op
) -> bool
[src]

pub unsafe fn op4(
    &mut self,
    rgn: *const SkRegion,
    rect: *const SkIRect,
    op: SkRegion_Op
) -> bool
[src]

pub unsafe fn op5(
    &mut self,
    rgna: *const SkRegion,
    rgnb: *const SkRegion,
    op: SkRegion_Op
) -> 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 new() -> Self[src]

pub unsafe fn new1(region: *const SkRegion) -> Self[src]

pub unsafe fn new2(rect: *const SkIRect) -> Self[src]

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

Trait Implementations

impl Debug for SkRegion[src]

Auto Trait Implementations

impl !Sync for SkRegion

impl !Send for SkRegion

impl Unpin for SkRegion

impl RefUnwindSafe for SkRegion

impl UnwindSafe for SkRegion

Blanket Implementations

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]