Struct skia_bindings::SkRRect
source · #[repr(C)]pub struct SkRRect {
pub fRect: SkRect,
pub fRadii: [SkVector; 4],
pub fType: i32,
}
Fields§
§fRect: SkRect
§fRadii: [SkVector; 4]
§fType: i32
Implementations§
source§impl SkRRect
impl SkRRect
pub unsafe fn setOval(&mut self, oval: *const SkRect)
pub unsafe fn setRectXY( &mut self, rect: *const SkRect, xRad: SkScalar, yRad: SkScalar )
pub unsafe fn setNinePatch( &mut self, rect: *const SkRect, leftRad: SkScalar, topRad: SkScalar, rightRad: SkScalar, bottomRad: SkScalar )
pub unsafe fn setRectRadii( &mut self, rect: *const SkRect, radii: *const SkVector )
pub unsafe fn inset(&self, dx: SkScalar, dy: SkScalar, dst: *mut SkRRect)
pub unsafe fn contains(&self, rect: *const SkRect) -> bool
pub unsafe fn isValid(&self) -> 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 transform( &self, matrix: *const SkMatrix, dst: *mut SkRRect ) -> bool
pub unsafe fn dump(&self, asHex: bool)
pub unsafe fn dumpToString(&self, asHex: bool) -> SkString
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SkRRect
impl Send for SkRRect
impl Sync for SkRRect
impl Unpin for SkRRect
impl UnwindSafe for SkRRect
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