pub struct ComputedLayout {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
Computed layout for a single node — absolute screen coordinates.
Fields§
§x: f32§y: f32§width: f32§height: f32Trait Implementations§
Source§impl Clone for ComputedLayout
impl Clone for ComputedLayout
Source§fn clone(&self) -> ComputedLayout
fn clone(&self) -> ComputedLayout
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 ComputedLayout
impl Debug for ComputedLayout
Source§impl Default for ComputedLayout
impl Default for ComputedLayout
Source§fn default() -> ComputedLayout
fn default() -> ComputedLayout
Returns the “default value” for a type. Read more
Source§impl From<ComputedLayout> for LayoutRect
impl From<ComputedLayout> for LayoutRect
Source§fn from(cl: ComputedLayout) -> Self
fn from(cl: ComputedLayout) -> Self
Converts to this type from the input type.
impl Copy for ComputedLayout
Auto Trait Implementations§
impl Freeze for ComputedLayout
impl RefUnwindSafe for ComputedLayout
impl Send for ComputedLayout
impl Sync for ComputedLayout
impl Unpin for ComputedLayout
impl UnsafeUnpin for ComputedLayout
impl UnwindSafe for ComputedLayout
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