pub struct LayoutRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
Computed layout rectangle in logical coordinates.
Ui::layout_rect exposes widget rectangles in
parent-local coordinates; raw LayoutTree results are layout-root-relative.
Fields§
§x: f32§y: f32§width: f32§height: f32Implementations§
Trait Implementations§
Source§impl Clone for LayoutRect
impl Clone for LayoutRect
impl Copy for LayoutRect
Source§impl Debug for LayoutRect
impl Debug for LayoutRect
Source§impl Default for LayoutRect
impl Default for LayoutRect
Source§impl PartialEq for LayoutRect
impl PartialEq for LayoutRect
impl StructuralPartialEq for LayoutRect
Auto Trait Implementations§
impl Forget for LayoutRect
impl Freeze for LayoutRect
impl Move for LayoutRect
impl RefUnwindSafe for LayoutRect
impl Send for LayoutRect
impl Sync for LayoutRect
impl Unpin for LayoutRect
impl UnsafeUnpin for LayoutRect
impl UnwindSafe for LayoutRect
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