pub struct SliverGridParentData {
pub cross_axis_offset: Option<f64>,
/* private fields */
}Expand description
Parent data structure used by RenderSliverGrid.
Fields§
§cross_axis_offset: Option<f64>The offset of the child in the non-scrolling axis.
If the scroll axis is vertical, this offset is from the left-most edge of the parent to the left-most edge of the child. If the scroll axis is horizontal, this offset is from the top-most edge of the parent to the top-most edge of the child.
Implementations§
Source§impl SliverGridParentData
impl SliverGridParentData
Sourcepub const fn new() -> SliverGridParentData
pub const fn new() -> SliverGridParentData
Creates parent data with no index, layout offset or cross-axis offset.
Trait Implementations§
Source§impl ContainerParentDataMixin for SliverGridParentData
impl ContainerParentDataMixin for SliverGridParentData
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 SliverGridParentData
impl Debug for SliverGridParentData
Source§impl Default for SliverGridParentData
impl Default for SliverGridParentData
Source§impl Display for SliverGridParentData
impl Display for SliverGridParentData
Auto Trait Implementations§
impl Freeze for SliverGridParentData
impl RefUnwindSafe for SliverGridParentData
impl Send for SliverGridParentData
impl Sync for SliverGridParentData
impl Unpin for SliverGridParentData
impl UnsafeUnpin for SliverGridParentData
impl UnwindSafe for SliverGridParentData
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