[][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 swap(&mut self, other: *mut SkRegion)[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 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 translate(&self, dx: c_int, dy: c_int, dst: *mut SkRegion)[src]

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

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

pub unsafe fn op2(
    &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]

Auto Trait Implementations

impl !Send for SkRegion

impl Unpin for SkRegion

impl !Sync for SkRegion

impl UnwindSafe for SkRegion

impl RefUnwindSafe for SkRegion

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]