pub struct LayoutRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub content_x: f32,
pub content_y: f32,
pub content_width: f32,
pub content_height: f32,
}Expand description
Layout result for a node.
Fields§
§x: f32§y: f32§width: f32§height: f32§content_x: f32§content_y: f32§content_width: f32§content_height: f32Implementations§
Source§impl LayoutRect
impl LayoutRect
pub fn content_rect(&self) -> LayoutRect
Trait Implementations§
Source§impl Clone for LayoutRect
impl Clone for LayoutRect
Source§fn clone(&self) -> LayoutRect
fn clone(&self) -> LayoutRect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutRect
impl Debug for LayoutRect
Source§impl Default for LayoutRect
impl Default for LayoutRect
Source§fn default() -> LayoutRect
fn default() -> LayoutRect
Returns the “default value” for a type. Read more
impl Copy for LayoutRect
Auto Trait Implementations§
impl Freeze 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