[][src]Struct pathfinder_canvas::RectI

pub struct RectI(pub I32x4);

NB: The origin is inclusive, while the lower right point is exclusive.

Methods

impl RectI[src]

pub fn new(origin: Vector2I, size: Vector2I) -> RectI[src]

pub fn from_points(origin: Vector2I, lower_right: Vector2I) -> RectI[src]

pub fn origin(&self) -> Vector2I[src]

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

pub fn origin_x(self) -> i32[src]

pub fn origin_y(self) -> i32[src]

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

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

pub fn upper_right(&self) -> Vector2I[src]

pub fn lower_left(&self) -> Vector2I[src]

pub fn lower_right(&self) -> Vector2I[src]

pub fn scale(self, factor: i32) -> RectI[src]

pub fn scale_xy(self, factors: Vector2I) -> RectI[src]

pub fn min_x(self) -> i32[src]

pub fn min_y(self) -> i32[src]

pub fn max_x(self) -> i32[src]

pub fn max_y(self) -> i32[src]

pub fn intersects(self, other: RectI) -> bool[src]

pub fn intersection(self, other: RectI) -> Option<RectI>[src]

pub fn contains_point(&self, point: Vector2I) -> bool[src]

pub fn contract(self, amount: Vector2I) -> RectI[src]

pub fn to_f32(&self) -> RectF[src]

Trait Implementations

impl Clone for RectI[src]

impl Copy for RectI[src]

impl Debug for RectI[src]

impl Default for RectI[src]

impl PartialEq<RectI> for RectI[src]

impl StructuralPartialEq for RectI[src]

Auto Trait Implementations

impl RefUnwindSafe for RectI

impl Send for RectI

impl Sync for RectI

impl Unpin for RectI

impl UnwindSafe for RectI

Blanket Implementations

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

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

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

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

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, 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.