pub struct SliverMultiBoxAdaptorParentData {
pub index: Option<i32>,
/* private fields */
}Expand description
Parent data structure used by RenderSliverMultiBoxAdaptor.
Fields§
§index: Option<i32>The index of this child according to the RenderSliverBoxChildManager.
Implementations§
Source§impl SliverMultiBoxAdaptorParentData
impl SliverMultiBoxAdaptorParentData
Sourcepub const fn new() -> SliverMultiBoxAdaptorParentData
pub const fn new() -> SliverMultiBoxAdaptorParentData
Creates parent data with no index and no layout offset.
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.
Sourcepub fn keep_alive(&self) -> bool
pub fn keep_alive(&self) -> bool
Sourcepub fn set_keep_alive(&mut self, value: bool)
pub fn set_keep_alive(&mut self, value: bool)
Sets keep_alive.
Sourcepub fn kept_alive(&self) -> bool
pub fn kept_alive(&self) -> bool
Trait Implementations§
Source§impl ContainerParentDataMixin for SliverMultiBoxAdaptorParentData
impl ContainerParentDataMixin for SliverMultiBoxAdaptorParentData
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 Default for SliverMultiBoxAdaptorParentData
impl Default for SliverMultiBoxAdaptorParentData
Source§fn default() -> SliverMultiBoxAdaptorParentData
fn default() -> SliverMultiBoxAdaptorParentData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SliverMultiBoxAdaptorParentData
impl RefUnwindSafe for SliverMultiBoxAdaptorParentData
impl Send for SliverMultiBoxAdaptorParentData
impl Sync for SliverMultiBoxAdaptorParentData
impl Unpin for SliverMultiBoxAdaptorParentData
impl UnsafeUnpin for SliverMultiBoxAdaptorParentData
impl UnwindSafe for SliverMultiBoxAdaptorParentData
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