pub struct Rect {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
Expand description
Rectangle bounds of a widget.
Coordinates are relative to the parent widget. Width and height are signed integers to simplify layout calculations.
Fields§
§x: i32
X coordinate relative to the parent widget.
y: i32
Y coordinate relative to the parent widget.
width: i32
Width in pixels.
height: i32
Height in pixels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin 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