[][src]Struct pathfinder_canvas::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 origin_x(self) -> f32[src]

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

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

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

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

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

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

pub fn set_origin_x(&mut self, x: f32)[src]

pub fn set_origin_y(&mut self, y: f32)[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 center(self) -> Vector2F[src]

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

Rounds all points to the nearest integer.

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

pub fn dilate<A>(self, amount: A) -> RectF where
    A: IntoVector2F
[src]

pub fn contract<A>(self, amount: A) -> RectF where
    A: IntoVector2F
[src]

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

Trait Implementations

impl Add<Vector2F> for RectF[src]

type Output = RectF

The resulting type after applying the + operator.

impl Add<f32> for RectF[src]

type Output = RectF

The resulting type after applying the + operator.

impl CanvasImageDestLocation for RectF[src]

impl Clone for RectF[src]

impl Copy for RectF[src]

impl Debug for RectF[src]

impl Default for RectF[src]

impl Mul<RectF> for Transform2F[src]

type Output = RectF

The resulting type after applying the * operator.

impl Mul<Vector2F> for RectF[src]

type Output = RectF

The resulting type after applying the * operator.

impl Mul<f32> for RectF[src]

type Output = RectF

The resulting type after applying the * operator.

impl PartialEq<RectF> for RectF[src]

impl StructuralPartialEq for RectF[src]

impl Sub<Vector2F> for RectF[src]

type Output = RectF

The resulting type after applying the - operator.

impl Sub<f32> for RectF[src]

type Output = RectF

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for RectF

impl Send for RectF

impl Sync for RectF

impl Unpin for RectF

impl UnwindSafe for RectF

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.