[−][src]Struct skia_bindings::SkRect
Fields
fLeft: SkScalar
fTop: SkScalar
fRight: SkScalar
fBottom: SkScalar
Methods
impl SkRect
[src]
pub unsafe fn MakeEmpty() -> SkRect
[src]
pub unsafe fn MakeWH(w: SkScalar, h: SkScalar) -> SkRect
[src]
pub unsafe fn MakeIWH(w: c_int, h: c_int) -> SkRect
[src]
pub unsafe fn MakeSize(size: *const SkSize) -> SkRect
[src]
pub unsafe fn MakeLTRB(
l: SkScalar,
t: SkScalar,
r: SkScalar,
b: SkScalar
) -> SkRect
[src]
l: SkScalar,
t: SkScalar,
r: SkScalar,
b: SkScalar
) -> SkRect
pub unsafe fn MakeXYWH(
x: SkScalar,
y: SkScalar,
w: SkScalar,
h: SkScalar
) -> SkRect
[src]
x: SkScalar,
y: SkScalar,
w: SkScalar,
h: SkScalar
) -> SkRect
pub unsafe fn Make(size: *const SkISize) -> SkRect
[src]
pub unsafe fn Make1(irect: *const SkIRect) -> SkRect
[src]
pub unsafe fn isEmpty(&self) -> bool
[src]
pub unsafe fn isSorted(&self) -> bool
[src]
pub unsafe fn isFinite(&self) -> bool
[src]
pub unsafe fn x(&self) -> SkScalar
[src]
pub unsafe fn y(&self) -> SkScalar
[src]
pub unsafe fn left(&self) -> SkScalar
[src]
pub unsafe fn top(&self) -> SkScalar
[src]
pub unsafe fn right(&self) -> SkScalar
[src]
pub unsafe fn bottom(&self) -> SkScalar
[src]
pub unsafe fn width(&self) -> SkScalar
[src]
pub unsafe fn height(&self) -> SkScalar
[src]
pub unsafe fn centerX(&self) -> SkScalar
[src]
pub unsafe fn centerY(&self) -> SkScalar
[src]
pub unsafe fn toQuad(&self, quad: *mut SkPoint)
[src]
pub unsafe fn setEmpty(&mut self)
[src]
pub unsafe fn set(&mut self, src: *const SkIRect)
[src]
pub unsafe fn set1(
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
)
[src]
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
)
pub unsafe fn setLTRB(
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
)
[src]
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
)
pub unsafe fn iset(
&mut self,
left: c_int,
top: c_int,
right: c_int,
bottom: c_int
)
[src]
&mut self,
left: c_int,
top: c_int,
right: c_int,
bottom: c_int
)
pub unsafe fn isetWH(&mut self, width: c_int, height: c_int)
[src]
pub unsafe fn set2(&mut self, pts: *const SkPoint, count: c_int)
[src]
pub unsafe fn setBounds(&mut self, pts: *const SkPoint, count: c_int)
[src]
pub unsafe fn setBoundsCheck(
&mut self,
pts: *const SkPoint,
count: c_int
) -> bool
[src]
&mut self,
pts: *const SkPoint,
count: c_int
) -> bool
pub unsafe fn setBoundsNoCheck(&mut self, pts: *const SkPoint, count: c_int)
[src]
pub unsafe fn set3(&mut self, p0: *const SkPoint, p1: *const SkPoint)
[src]
pub unsafe fn setXYWH(
&mut self,
x: SkScalar,
y: SkScalar,
width: SkScalar,
height: SkScalar
)
[src]
&mut self,
x: SkScalar,
y: SkScalar,
width: SkScalar,
height: SkScalar
)
pub unsafe fn setWH(&mut self, width: SkScalar, height: SkScalar)
[src]
pub unsafe fn makeOffset(&self, dx: SkScalar, dy: SkScalar) -> SkRect
[src]
pub unsafe fn makeInset(&self, dx: SkScalar, dy: SkScalar) -> SkRect
[src]
pub unsafe fn makeOutset(&self, dx: SkScalar, dy: SkScalar) -> SkRect
[src]
pub unsafe fn offset(&mut self, dx: SkScalar, dy: SkScalar)
[src]
pub unsafe fn offset1(&mut self, delta: *const SkPoint)
[src]
pub unsafe fn offsetTo(&mut self, newX: SkScalar, newY: SkScalar)
[src]
pub unsafe fn inset(&mut self, dx: SkScalar, dy: SkScalar)
[src]
pub unsafe fn outset(&mut self, dx: SkScalar, dy: SkScalar)
[src]
pub unsafe fn intersect(&mut self, r: *const SkRect) -> bool
[src]
pub unsafe fn intersect1(
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
) -> bool
[src]
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
) -> bool
pub unsafe fn intersect2(&mut self, a: *const SkRect, b: *const SkRect) -> bool
[src]
pub unsafe fn intersects(
&self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
) -> bool
[src]
&self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
) -> bool
pub unsafe fn intersects1(&self, r: *const SkRect) -> bool
[src]
pub unsafe fn Intersects(a: *const SkRect, b: *const SkRect) -> bool
[src]
pub unsafe fn join(
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
)
[src]
&mut self,
left: SkScalar,
top: SkScalar,
right: SkScalar,
bottom: SkScalar
)
pub unsafe fn join1(&mut self, r: *const SkRect)
[src]
pub unsafe fn joinNonEmptyArg(&mut self, r: *const SkRect)
[src]
pub unsafe fn joinPossiblyEmptyRect(&mut self, r: *const SkRect)
[src]
pub unsafe fn contains(&self, x: SkScalar, y: SkScalar) -> bool
[src]
pub unsafe fn contains1(&self, r: *const SkRect) -> bool
[src]
pub unsafe fn contains2(&self, r: *const SkIRect) -> bool
[src]
pub unsafe fn round(&self, dst: *mut SkIRect)
[src]
pub unsafe fn roundOut(&self, dst: *mut SkIRect)
[src]
pub unsafe fn roundOut1(&self, dst: *mut SkRect)
[src]
pub unsafe fn roundIn(&self, dst: *mut SkIRect)
[src]
pub unsafe fn round1(&self) -> SkIRect
[src]
pub unsafe fn roundOut2(&self) -> SkIRect
[src]
pub unsafe fn sort(&mut self)
[src]
pub unsafe fn makeSorted(&self) -> SkRect
[src]
pub unsafe fn asScalars(&self) -> *const SkScalar
[src]
pub unsafe fn dump(&self, asHex: bool)
[src]
pub unsafe fn dump1(&self)
[src]
pub unsafe fn dumpHex(&self)
[src]
Trait Implementations
impl Clone for SkRect
[src]
fn clone(&self) -> SkRect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SkRect
[src]
impl Debug for SkRect
[src]
Auto Trait Implementations
impl Sync for SkRect
impl Send for SkRect
impl Unpin for SkRect
impl RefUnwindSafe for SkRect
impl UnwindSafe for SkRect
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,