pub struct BoxParentData {
pub offset: Offset,
}Expand description
Parent data used by RenderBox and its subclasses.
Fields§
§offset: OffsetThe offset at which to paint the child in the parent’s coordinate system.
Implementations§
Source§impl BoxParentData
impl BoxParentData
Sourcepub const fn new() -> BoxParentData
pub const fn new() -> BoxParentData
Creates box parent data with a zero offset.
Trait Implementations§
Source§impl Clone for BoxParentData
impl Clone for BoxParentData
impl Copy for BoxParentData
Source§impl Debug for BoxParentData
impl Debug for BoxParentData
Source§impl Default for BoxParentData
impl Default for BoxParentData
Source§fn default() -> BoxParentData
fn default() -> BoxParentData
Returns the “default value” for a type. Read more
Source§impl Display for BoxParentData
impl Display for BoxParentData
Auto Trait Implementations§
impl Freeze for BoxParentData
impl RefUnwindSafe for BoxParentData
impl Send for BoxParentData
impl Sync for BoxParentData
impl Unpin for BoxParentData
impl UnsafeUnpin for BoxParentData
impl UnwindSafe for BoxParentData
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