pub struct WrapParentData { /* private fields */ }Expand description
Parent data for use with RenderWrap.
Implementations§
Source§impl WrapParentData
impl WrapParentData
Sourcepub const fn new() -> WrapParentData
pub const fn new() -> WrapParentData
Creates wrap parent data at offset zero, with no siblings.
Trait Implementations§
Source§impl ContainerBoxParentData for WrapParentData
impl ContainerBoxParentData for WrapParentData
Source§fn box_parent_data(&self) -> &BoxParentData
fn box_parent_data(&self) -> &BoxParentData
Mixin field access: the
BoxParentData half. Read moreSource§fn box_parent_data_mut(&mut self) -> &mut BoxParentData
fn box_parent_data_mut(&mut self) -> &mut BoxParentData
See
box_parent_data.Source§fn offset(&self) -> Offset
fn offset(&self) -> Offset
The offset at which to paint the child in the parent’s coordinate system.
Source§fn set_offset(&mut self, value: Offset)
fn set_offset(&mut self, value: Offset)
Sets
offset.Source§impl ContainerParentDataMixin for WrapParentData
impl ContainerParentDataMixin for WrapParentData
Source§type ChildType = AnyRenderBox
type ChildType = AnyRenderBox
The type-erased handle of a child in the list.
AnyRenderBox for a box container.Source§fn container_parent_data(&self) -> &ContainerParentData<AnyRenderBox>
fn container_parent_data(&self) -> &ContainerParentData<AnyRenderBox>
Mixin field access.
Source§fn container_parent_data_mut(
&mut self,
) -> &mut ContainerParentData<AnyRenderBox>
fn container_parent_data_mut( &mut self, ) -> &mut ContainerParentData<AnyRenderBox>
Source§fn previous_sibling(&self) -> Option<Self::ChildType>
fn previous_sibling(&self) -> Option<Self::ChildType>
The previous sibling in the parent’s child list.
Source§fn set_previous_sibling(&mut self, value: Option<Self::ChildType>)
fn set_previous_sibling(&mut self, value: Option<Self::ChildType>)
Sets
previous_sibling.Source§fn next_sibling(&self) -> Option<Self::ChildType>
fn next_sibling(&self) -> Option<Self::ChildType>
The next sibling in the parent’s child list.
Source§fn set_next_sibling(&mut self, value: Option<Self::ChildType>)
fn set_next_sibling(&mut self, value: Option<Self::ChildType>)
Sets
next_sibling.Source§impl Debug for WrapParentData
impl Debug for WrapParentData
Source§impl Default for WrapParentData
impl Default for WrapParentData
Source§impl Display for WrapParentData
impl Display for WrapParentData
Auto Trait Implementations§
impl Freeze for WrapParentData
impl RefUnwindSafe for WrapParentData
impl Send for WrapParentData
impl Sync for WrapParentData
impl Unpin for WrapParentData
impl UnsafeUnpin for WrapParentData
impl UnwindSafe for WrapParentData
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