[−][src]Struct skia_bindings::SkIRect
Fields
fLeft: i32
fTop: i32
fRight: i32
fBottom: i32
Methods
impl SkIRect
[src]
pub unsafe fn MakeEmpty() -> SkIRect
[src]
pub unsafe fn MakeWH(w: i32, h: i32) -> SkIRect
[src]
pub unsafe fn MakeSize(size: *const SkISize) -> SkIRect
[src]
pub unsafe fn MakeLTRB(l: i32, t: i32, r: i32, b: i32) -> SkIRect
[src]
pub unsafe fn MakeXYWH(x: i32, y: i32, w: i32, h: i32) -> SkIRect
[src]
pub unsafe fn left(&self) -> i32
[src]
pub unsafe fn top(&self) -> i32
[src]
pub unsafe fn right(&self) -> i32
[src]
pub unsafe fn bottom(&self) -> i32
[src]
pub unsafe fn x(&self) -> i32
[src]
pub unsafe fn y(&self) -> i32
[src]
pub unsafe fn topLeft(&self) -> SkIPoint
[src]
pub unsafe fn width(&self) -> i32
[src]
pub unsafe fn height(&self) -> i32
[src]
pub unsafe fn size(&self) -> SkISize
[src]
pub unsafe fn width64(&self) -> i64
[src]
pub unsafe fn height64(&self) -> i64
[src]
pub unsafe fn isEmpty64(&self) -> bool
[src]
pub unsafe fn isEmpty(&self) -> bool
[src]
pub unsafe fn setEmpty(&mut self)
[src]
pub unsafe fn set(&mut self, left: i32, top: i32, right: i32, bottom: i32)
[src]
pub unsafe fn setLTRB(&mut self, left: i32, top: i32, right: i32, bottom: i32)
[src]
pub unsafe fn setXYWH(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]
pub unsafe fn makeOffset(&self, dx: i32, dy: i32) -> SkIRect
[src]
pub unsafe fn makeInset(&self, dx: i32, dy: i32) -> SkIRect
[src]
pub unsafe fn makeOutset(&self, dx: i32, dy: i32) -> SkIRect
[src]
pub unsafe fn offset(&mut self, dx: i32, dy: i32)
[src]
pub unsafe fn offset1(&mut self, delta: *const SkIPoint)
[src]
pub unsafe fn offsetTo(&mut self, newX: i32, newY: i32)
[src]
pub unsafe fn inset(&mut self, dx: i32, dy: i32)
[src]
pub unsafe fn outset(&mut self, dx: i32, dy: i32)
[src]
pub unsafe fn adjust(&mut self, dL: i32, dT: i32, dR: i32, dB: i32)
[src]
pub unsafe fn contains(&self, x: i32, y: i32) -> bool
[src]
pub unsafe fn contains1(
&self,
left: i32,
top: i32,
right: i32,
bottom: i32
) -> bool
[src]
&self,
left: i32,
top: i32,
right: i32,
bottom: i32
) -> bool
pub unsafe fn contains2(&self, r: *const SkIRect) -> bool
[src]
pub unsafe fn contains3(&self, r: *const SkRect) -> bool
[src]
pub unsafe fn containsNoEmptyCheck(
&self,
left: i32,
top: i32,
right: i32,
bottom: i32
) -> bool
[src]
&self,
left: i32,
top: i32,
right: i32,
bottom: i32
) -> bool
pub unsafe fn containsNoEmptyCheck1(&self, r: *const SkIRect) -> bool
[src]
pub unsafe fn intersect(&mut self, r: *const SkIRect) -> bool
[src]
pub unsafe fn intersectNoEmptyCheck(
&mut self,
a: *const SkIRect,
b: *const SkIRect
) -> bool
[src]
&mut self,
a: *const SkIRect,
b: *const SkIRect
) -> bool
pub unsafe fn intersect1(
&mut self,
a: *const SkIRect,
b: *const SkIRect
) -> bool
[src]
&mut self,
a: *const SkIRect,
b: *const SkIRect
) -> bool
pub unsafe fn intersect2(
&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 Intersects(a: *const SkIRect, b: *const SkIRect) -> bool
[src]
pub unsafe fn IntersectsNoEmptyCheck(
a: *const SkIRect,
b: *const SkIRect
) -> bool
[src]
a: *const SkIRect,
b: *const SkIRect
) -> bool
pub unsafe fn join(&mut self, left: i32, top: i32, right: i32, bottom: i32)
[src]
pub unsafe fn join1(&mut self, r: *const SkIRect)
[src]
pub unsafe fn sort(&mut self)
[src]
pub unsafe fn makeSorted(&self) -> SkIRect
[src]
pub unsafe fn EmptyIRect() -> *const SkIRect
[src]
Trait Implementations
impl Clone for SkIRect
[src]
fn clone(&self) -> SkIRect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SkIRect
[src]
impl Debug for SkIRect
[src]
Auto Trait Implementations
impl Sync for SkIRect
impl Send for SkIRect
impl Unpin for SkIRect
impl RefUnwindSafe for SkIRect
impl UnwindSafe for SkIRect
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,