pub struct UiRect {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}Fields§
§left: f32§top: f32§right: f32§bottom: f32Implementations§
Source§impl UiRect
impl UiRect
pub const fn new(left: f32, top: f32, right: f32, bottom: f32) -> Self
pub fn normalized(self) -> Self
pub fn width(self) -> f32
pub fn height(self) -> f32
pub fn contains(self, point: Point) -> bool
pub fn inflate(self, x: f32, y: f32) -> Self
pub fn translate(self, x: f32, y: f32) -> Self
pub fn inset(self, insets: EdgeInsets) -> Self
pub fn union(self, other: Self) -> Self
pub fn intersect(self, other: Self) -> Option<Self>
Trait Implementations§
impl Copy for UiRect
impl Eq for UiRect
Auto Trait Implementations§
impl Freeze for UiRect
impl RefUnwindSafe for UiRect
impl Send for UiRect
impl Sync for UiRect
impl Unpin for UiRect
impl UnsafeUnpin for UiRect
impl UnwindSafe for UiRect
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