[−][src]Struct skia_bindings::SkRegion
Fields
fBounds: SkIRect
fRunHead: *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]
&mut self,
left: i32,
top: i32,
right: i32,
bottom: i32
) -> bool
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]
&mut self,
path: *const SkPath,
clip: *const SkRegion
) -> bool
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]
&self,
left: i32,
top: i32,
right: i32,
bottom: i32
) -> bool
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]
&mut self,
left: c_int,
top: c_int,
right: c_int,
bottom: c_int,
op: SkRegion_Op
) -> bool
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]
&mut self,
rect: *const SkIRect,
rgn: *const SkRegion,
op: SkRegion_Op
) -> bool
pub unsafe fn op4(
&mut self,
rgn: *const SkRegion,
rect: *const SkIRect,
op: SkRegion_Op
) -> bool
[src]
&mut self,
rgn: *const SkRegion,
rect: *const SkIRect,
op: SkRegion_Op
) -> bool
pub unsafe fn op5(
&mut self,
rgna: *const SkRegion,
rgnb: *const SkRegion,
op: SkRegion_Op
) -> bool
[src]
&mut self,
rgna: *const SkRegion,
rgnb: *const SkRegion,
op: SkRegion_Op
) -> bool
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]
&mut self,
buffer: *const c_void,
length: usize
) -> usize
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,