pub struct ListBodyParentData { /* private fields */ }Expand description
Parent data for use with RenderListBody.
Implementations§
Source§impl ListBodyParentData
impl ListBodyParentData
Sourcepub const fn new() -> ListBodyParentData
pub const fn new() -> ListBodyParentData
Creates list body parent data at offset zero, with no siblings.
Trait Implementations§
Source§impl ContainerBoxParentData for ListBodyParentData
impl ContainerBoxParentData for ListBodyParentData
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 ListBodyParentData
impl ContainerParentDataMixin for ListBodyParentData
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 ListBodyParentData
impl Debug for ListBodyParentData
Source§impl Default for ListBodyParentData
impl Default for ListBodyParentData
Source§impl Display for ListBodyParentData
impl Display for ListBodyParentData
Auto Trait Implementations§
impl Forget for ListBodyParentData
impl Freeze for ListBodyParentData
impl Move for ListBodyParentData
impl RefUnwindSafe for ListBodyParentData
impl Send for ListBodyParentData
impl Sync for ListBodyParentData
impl Unpin for ListBodyParentData
impl UnsafeUnpin for ListBodyParentDatawhere
NonZeroU32Inner: UnsafeUnpin,
&'static RenderBoxVTable: UnsafeUnpin,
impl UnwindSafe for ListBodyParentData
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