pub struct SliverLogicalContainerParentData { /* private fields */ }Expand description
Parent data for slivers that have multiple children and that position their children using layout offsets.
Implementations§
Source§impl SliverLogicalContainerParentData
impl SliverLogicalContainerParentData
Sourcepub const fn new() -> SliverLogicalContainerParentData
pub const fn new() -> SliverLogicalContainerParentData
Creates parent data with no layout offset and no siblings.
Sourcepub fn sliver_logical_parent_data(&self) -> &SliverLogicalParentData
pub fn sliver_logical_parent_data(&self) -> &SliverLogicalParentData
The SliverLogicalParentData half.
Sourcepub fn sliver_logical_parent_data_mut(&mut self) -> &mut SliverLogicalParentData
pub fn sliver_logical_parent_data_mut(&mut self) -> &mut SliverLogicalParentData
Sourcepub fn layout_offset(&self) -> Option<f64>
pub fn layout_offset(&self) -> Option<f64>
Sourcepub fn set_layout_offset(&mut self, value: Option<f64>)
pub fn set_layout_offset(&mut self, value: Option<f64>)
Sets layout_offset.
Trait Implementations§
Source§impl ContainerParentDataMixin for SliverLogicalContainerParentData
impl ContainerParentDataMixin for SliverLogicalContainerParentData
Source§type ChildType = AnyRenderSliver
type ChildType = AnyRenderSliver
The type-erased handle of a child in the list.
AnyRenderBox for a box container.Source§fn container_parent_data(&self) -> &ContainerParentData<AnyRenderSliver>
fn container_parent_data(&self) -> &ContainerParentData<AnyRenderSliver>
Mixin field access.
Source§fn container_parent_data_mut(
&mut self,
) -> &mut ContainerParentData<AnyRenderSliver>
fn container_parent_data_mut( &mut self, ) -> &mut ContainerParentData<AnyRenderSliver>
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 Default for SliverLogicalContainerParentData
impl Default for SliverLogicalContainerParentData
Source§fn default() -> SliverLogicalContainerParentData
fn default() -> SliverLogicalContainerParentData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SliverLogicalContainerParentData
impl RefUnwindSafe for SliverLogicalContainerParentData
impl Send for SliverLogicalContainerParentData
impl Sync for SliverLogicalContainerParentData
impl Unpin for SliverLogicalContainerParentData
impl UnsafeUnpin for SliverLogicalContainerParentData
impl UnwindSafe for SliverLogicalContainerParentData
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