[][src]Struct skia_safe::IRect

#[repr(C)]
pub struct IRect {
    pub left: i32,
    pub top: i32,
    pub right: i32,
    pub bottom: i32,
}

Fields

left: i32top: i32right: i32bottom: i32

Methods

impl IRect[src]

pub const fn new(left: i32, top: i32, right: i32, bottom: i32) -> Self[src]

pub const fn new_empty() -> Self[src]

pub fn from_wh(w: i32, h: i32) -> Self[src]

pub fn from_size(size: impl Into<ISize>) -> Self[src]

pub const fn from_ltrb(l: i32, t: i32, r: i32, b: i32) -> Self[src]

pub fn from_xywh(x: i32, y: i32, w: i32, h: i32) -> Self[src]

pub fn left(&self) -> i32[src]

pub fn top(&self) -> i32[src]

pub fn right(&self) -> i32[src]

pub fn bottom(&self) -> i32[src]

pub fn x(&self) -> i32[src]

pub fn y(&self) -> i32[src]

pub fn left_top(&self) -> IPoint[src]

Deprecated since 0.12.0:

will be removed without replacement

pub fn width(&self) -> i32[src]

pub fn height(&self) -> i32[src]

pub fn size(&self) -> ISize[src]

pub fn width_64(&self) -> i64[src]

pub fn height_64(&self) -> i64[src]

pub fn is_empty_64(&self) -> bool[src]

pub fn is_empty(&self) -> bool[src]

pub fn set_empty(&mut self)[src]

pub fn set(&mut self, left: i32, top: i32, right: i32, bottom: i32)[src]

pub fn set_ltrb(&mut self, left: i32, top: i32, right: i32, bottom: i32)[src]

pub fn set_xywh(&mut self, x: i32, y: i32, w: i32, h: i32)[src]

#[must_use] pub fn with_offset(&self, delta: impl Into<IVector>) -> Self[src]

#[must_use] pub fn with_inset(&self, delta: impl Into<IVector>) -> Self[src]

#[must_use] pub fn with_outset(&self, delta: impl Into<IVector>) -> Self[src]

pub fn offset(&mut self, delta: impl Into<IPoint>)[src]

pub fn offset_to(&mut self, new_p: impl Into<IPoint>)[src]

#[must_use] pub fn with_offset_to(&self, new_p: impl Into<IPoint>) -> Self[src]

pub fn inset(&mut self, delta: impl Into<IVector>)[src]

pub fn outset(&mut self, delta: impl Into<IVector>)[src]

#[must_use] pub fn with_adjustment(&self, d_l: i32, d_t: i32, d_r: i32, d_b: i32) -> Self[src]

pub fn adjust(&mut self, d_l: i32, d_t: i32, d_r: i32, d_b: i32)[src]

pub fn contains_no_empty_check(&self, r: &Self) -> bool[src]

pub fn intersect(a: &Self, b: &Self) -> Option<Self>[src]

pub fn intersect_no_empty_check(a: &Self, b: &Self) -> Option<Self>[src]

pub fn intersects(a: &Self, b: &Self) -> bool[src]

pub fn intersects_no_empty_check(a: &Self, b: &Self) -> bool[src]

pub fn join(a: &Self, b: &Self) -> Self[src]

pub fn sort(&mut self)[src]

#[must_use] pub fn sorted(&self) -> Self[src]

#[must_use] pub fn empty() -> &'static Self[src]

Trait Implementations

impl RoundOut<IRect> for Rect[src]

impl Intersects<IRect> for Region[src]

impl Contains<IPoint> for IRect[src]

impl<'_> Contains<&'_ IRect> for IRect[src]

impl<'_> Contains<&'_ Rect> for IRect[src]

impl Contains<IRect> for IRect[src]

impl Contains<Rect> for IRect[src]

impl Contains<IRect> for Rect[src]

impl<'_> Contains<&'_ IRect> for Region[src]

impl QuickReject<IRect> for Region[src]

impl Eq for IRect[src]

impl Default for IRect[src]

impl Clone for IRect[src]

impl PartialEq<IRect> for IRect[src]

impl AsRef<IRect> for IRect[src]

impl From<(IPoint, ISize)> for IRect[src]

impl From<IRect> for Rect[src]

impl Copy for IRect[src]

impl Debug for IRect[src]

Auto Trait Implementations

impl Send for IRect

impl Unpin for IRect

impl Sync for IRect

impl UnwindSafe for IRect

impl RefUnwindSafe for IRect

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]