pub struct Rect { /* private fields */ }Expand description
Axis-aligned rectangle in logical pixels.
Implementations§
Source§impl Rect
Geometry queries and clipping helpers for Rect.
impl Rect
Geometry queries and clipping helpers for Rect.
Source§impl Rect
impl Rect
pub fn get_x(&self) -> f32
pub fn get_mut_x(&mut self) -> &mut f32
pub fn set_x(&mut self, val: f32) -> &mut Self
pub fn get_y(&self) -> f32
pub fn get_mut_y(&mut self) -> &mut f32
pub fn set_y(&mut self, val: f32) -> &mut Self
pub fn get_width(&self) -> f32
pub fn get_mut_width(&mut self) -> &mut f32
pub fn set_width(&mut self, val: f32) -> &mut Self
pub fn get_height(&self) -> f32
pub fn get_mut_height(&mut self) -> &mut f32
pub fn set_height(&mut self, val: f32) -> &mut Self
Trait Implementations§
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Forget for Rect
impl Freeze for Rect
impl Move for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnsafeUnpin for Rect
impl UnwindSafe for Rect
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