[][src]Struct pathfinder_geometry::rect::RectF

pub struct RectF(pub F32x4);

Methods

impl RectF[src]

pub fn new(origin: Vector2F, size: Vector2F) -> RectF[src]

pub fn from_points(origin: Vector2F, lower_right: Vector2F) -> RectF[src]

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

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

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

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

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

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

pub fn contains_rect(&self, other: RectF) -> bool[src]

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

pub fn union_point(&self, point: Vector2F) -> RectF[src]

pub fn union_rect(&self, other: RectF) -> RectF[src]

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

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

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

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

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

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

pub fn scale(self, factor: f32) -> RectF[src]

pub fn scale_xy(self, factors: Vector2F) -> RectF[src]

pub fn round_out(self) -> RectF[src]

pub fn dilate(self, amount: Vector2F) -> RectF[src]

pub fn to_i32(&self) -> RectI[src]

Trait Implementations

impl Clone for RectF[src]

impl Copy for RectF[src]

impl Default for RectF[src]

impl PartialEq<RectF> for RectF[src]

impl Debug for RectF[src]

impl Mul<RectF> for Transform2F[src]

type Output = RectF

The resulting type after applying the * operator.

impl Mul<RectF> for Perspective[src]

type Output = RectF

The resulting type after applying the * operator.

impl StructuralPartialEq for RectF[src]

Auto Trait Implementations

impl Send for RectF

impl Sync for RectF

impl Unpin for RectF

impl UnwindSafe for RectF

impl RefUnwindSafe for RectF

Blanket Implementations

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

impl<T> From<T> for 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.

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]