Struct skia_bindings::SkRegion
source · #[repr(C)]pub struct SkRegion {
pub fBounds: SkIRect,
pub fRunHead: *mut SkRegion_RunHead,
}
Fields§
§fBounds: SkIRect
§fRunHead: *mut SkRegion_RunHead
Implementations§
source§impl SkRegion
impl SkRegion
pub unsafe fn swap(&mut self, other: *mut SkRegion)
pub unsafe fn computeRegionComplexity(&self) -> c_int
pub unsafe fn getBoundaryPath(&self, path: *mut SkPath) -> bool
pub unsafe fn setEmpty(&mut self) -> bool
pub unsafe fn setRect(&mut self, rect: *const SkIRect) -> bool
pub unsafe fn setRects(&mut self, rects: *const SkIRect, count: c_int) -> bool
pub unsafe fn setRegion(&mut self, region: *const SkRegion) -> bool
pub unsafe fn setPath( &mut self, path: *const SkPath, clip: *const SkRegion ) -> bool
pub unsafe fn intersects(&self, rect: *const SkIRect) -> bool
pub unsafe fn intersects1(&self, other: *const SkRegion) -> bool
pub unsafe fn contains(&self, x: i32, y: i32) -> bool
pub unsafe fn contains1(&self, other: *const SkIRect) -> bool
pub unsafe fn contains2(&self, other: *const SkRegion) -> bool
pub unsafe fn translate(&self, dx: c_int, dy: c_int, dst: *mut SkRegion)
pub unsafe fn op( &mut self, rect: *const SkIRect, rgn: *const SkRegion, op: SkRegion_Op ) -> bool
pub unsafe fn op1( &mut self, rgn: *const SkRegion, rect: *const SkIRect, op: SkRegion_Op ) -> bool
pub unsafe fn op2( &mut self, rgna: *const SkRegion, rgnb: *const SkRegion, op: SkRegion_Op ) -> bool
pub unsafe fn writeToMemory(&self, buffer: *mut c_void) -> usize
pub unsafe fn readFromMemory( &mut self, buffer: *const c_void, length: usize ) -> usize
pub unsafe fn new() -> Self
pub unsafe fn new1(region: *const SkRegion) -> Self
pub unsafe fn new2(rect: *const SkIRect) -> Self
pub unsafe fn destruct(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SkRegion
impl !Send for SkRegion
impl !Sync for SkRegion
impl Unpin for SkRegion
impl UnwindSafe for SkRegion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more