pub struct MultiChildLayoutParentData {
pub id: Option<ChildLayoutId>,
/* private fields */
}Expand description
Fields§
§id: Option<ChildLayoutId>An object representing the identity of this child.
Implementations§
Source§impl MultiChildLayoutParentData
impl MultiChildLayoutParentData
Sourcepub const fn new() -> MultiChildLayoutParentData
pub const fn new() -> MultiChildLayoutParentData
Creates parent data for a child that has no id yet.
Trait Implementations§
Source§impl ContainerBoxParentData for MultiChildLayoutParentData
impl ContainerBoxParentData for MultiChildLayoutParentData
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 MultiChildLayoutParentData
impl ContainerParentDataMixin for MultiChildLayoutParentData
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 MultiChildLayoutParentData
impl Debug for MultiChildLayoutParentData
Source§impl Default for MultiChildLayoutParentData
impl Default for MultiChildLayoutParentData
Source§fn default() -> MultiChildLayoutParentData
fn default() -> MultiChildLayoutParentData
Returns the “default value” for a type. Read more
Source§impl Display for MultiChildLayoutParentData
impl Display for MultiChildLayoutParentData
Auto Trait Implementations§
impl !RefUnwindSafe for MultiChildLayoutParentData
impl !Send for MultiChildLayoutParentData
impl !Sync for MultiChildLayoutParentData
impl !UnwindSafe for MultiChildLayoutParentData
impl Freeze for MultiChildLayoutParentData
impl Unpin for MultiChildLayoutParentData
impl UnsafeUnpin for MultiChildLayoutParentData
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