Struct pathfinder_geometry::rect::RectF
source · pub struct RectF(pub F32x4);
Tuple Fields§
§0: F32x4
Implementations§
source§impl RectF
impl RectF
pub fn new(origin: Vector2F, size: Vector2F) -> RectF
pub fn from_points(origin: Vector2F, lower_right: Vector2F) -> RectF
pub fn origin(self) -> Vector2F
pub fn size(self) -> Vector2F
pub fn origin_x(self) -> f32
pub fn origin_y(self) -> f32
pub fn width(self) -> f32
pub fn height(self) -> f32
pub fn upper_right(self) -> Vector2F
pub fn lower_left(self) -> Vector2F
pub fn lower_right(self) -> Vector2F
pub fn set_origin_x(&mut self, x: f32)
pub fn set_origin_y(&mut self, y: f32)
pub fn contains_point(self, point: Vector2F) -> bool
pub fn contains_rect(self, other: RectF) -> bool
pub fn is_empty(self) -> bool
pub fn union_point(self, point: Vector2F) -> RectF
pub fn union_rect(self, other: RectF) -> RectF
pub fn intersects(self, other: RectF) -> bool
pub fn intersection(self, other: RectF) -> Option<RectF>
pub fn min_x(self) -> f32
pub fn min_y(self) -> f32
pub fn max_x(self) -> f32
pub fn max_y(self) -> f32
pub fn center(self) -> Vector2F
pub fn round_out(self) -> RectF
pub fn dilate<A>(self, amount: A) -> RectFwhere
A: IntoVector2F,
pub fn contract<A>(self, amount: A) -> RectFwhere
A: IntoVector2F,
pub fn to_i32(&self) -> RectI
Trait Implementations§
source§impl Mul<RectF> for Perspective
impl Mul<RectF> for Perspective
source§impl Mul<RectF> for Transform2F
impl Mul<RectF> for Transform2F
source§impl PartialEq for RectF
impl PartialEq for RectF
impl Copy for RectF
impl StructuralPartialEq for RectF
Auto Trait Implementations§
impl Freeze for RectF
impl RefUnwindSafe for RectF
impl Send for RectF
impl Sync for RectF
impl Unpin for RectF
impl UnwindSafe for RectF
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more