Struct font_types::BoundingBox
source · pub struct BoundingBox<T> {
pub x_min: T,
pub y_min: T,
pub x_max: T,
pub y_max: T,
}Expand description
Minimum and maximum extents of a rectangular region.
Fields§
§x_min: TMinimum extent in the x direction– the left side of a region.
y_min: TMinimum extent in the y direction. In a Y-up coordinate system, which is used by fonts, this represents the bottom of a region.
x_max: TMaximum extent in the x direction– the right side of a region.
y_max: TMaximum extend in the y direction. In a Y-up coordinate system, which is used by fonts, this represents the top of the region.
Trait Implementations§
source§impl<T: Clone> Clone for BoundingBox<T>
impl<T: Clone> Clone for BoundingBox<T>
source§fn clone(&self) -> BoundingBox<T>
fn clone(&self) -> BoundingBox<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug> Debug for BoundingBox<T>
impl<T: Debug> Debug for BoundingBox<T>
source§impl<T: Default> Default for BoundingBox<T>
impl<T: Default> Default for BoundingBox<T>
source§fn default() -> BoundingBox<T>
fn default() -> BoundingBox<T>
Returns the “default value” for a type. Read more
source§impl<T: PartialEq> PartialEq<BoundingBox<T>> for BoundingBox<T>
impl<T: PartialEq> PartialEq<BoundingBox<T>> for BoundingBox<T>
source§fn eq(&self, other: &BoundingBox<T>) -> bool
fn eq(&self, other: &BoundingBox<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.