pub struct PathBbox { /* private fields */ }
Expand description

A path bbox representation.

The same as Rect, but width or height are allowed to be zero to represent horizontal or vertical lines.

Implementations

Creates a new PathBbox from values.

Creates a new PathBbox for bounding box calculation.

Shorthand for PathBbox::new(f64::MAX, f64::MAX, 1.0, 1.0).

Returns X position.

Returns Y position.

Returns width.

Returns height.

Returns left edge position.

Returns right edge position.

Returns top edge position.

Returns bottom edge position.

Expands the PathBbox to the provided size.

Transforms the PathBbox using the provided bbox.

Transforms the PathBbox using the provided Transform.

This method is expensive.

Converts into a Rect.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Returns true if values are approximately equal.

Returns true if values are not approximately equal.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.