Struct flo_animation::Rect [] [src]

pub struct Rect {
    pub x1: f32,
    pub y1: f32,
    pub x2: f32,
    pub y2: f32,
}

Represents a rectangle

Fields

Methods

impl Rect
[src]

[src]

Creates a new rectangle

[src]

Creates a new rectangle with specific points

[src]

Creates an empty rectangle

[src]

Converts a rectangle into one where x2 and y2 are greater than x1 and y1

[src]

Returns true if the specified point is inside this rectangle

[src]

True if this rectangle has no size

[src]

Creates the union of two rectangles

Trait Implementations

impl From<(PathPoint, PathElement)> for Rect
[src]

An element and its starting point can be converted into a bounding rectangle

[src]

Performs the conversion.

impl From<(PathElement, PathElement)> for Rect
[src]

Pairs of path elements can also be turned into bounding rectangles

[src]

Performs the conversion.

impl<'a> From<&'a Path> for Rect
[src]

Paths can be converted into bounding boxes

[src]

Performs the conversion.

impl From<Path> for Rect
[src]

[src]

Performs the conversion.

impl Copy for Rect
[src]

impl Clone for Rect
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Rect
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Rect
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Into<Vec<Draw>> for &'a Rect
[src]

[src]

Performs the conversion.

impl Into<Vec<Draw>> for Rect
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect