pub struct SliverPhysicalContainerParentData { /* private fields */ }Expand description
Parent data for slivers that have multiple children and that position their children using absolute coordinates.
Implementations§
Source§impl SliverPhysicalContainerParentData
impl SliverPhysicalContainerParentData
Sourcepub const fn new() -> SliverPhysicalContainerParentData
pub const fn new() -> SliverPhysicalContainerParentData
Creates parent data with a zero paint offset and no siblings.
Sourcepub fn sliver_physical_parent_data(&self) -> &SliverPhysicalParentData
pub fn sliver_physical_parent_data(&self) -> &SliverPhysicalParentData
The SliverPhysicalParentData half.
Sourcepub fn sliver_physical_parent_data_mut(
&mut self,
) -> &mut SliverPhysicalParentData
pub fn sliver_physical_parent_data_mut( &mut self, ) -> &mut SliverPhysicalParentData
Sourcepub fn paint_offset(&self) -> Offset
pub fn paint_offset(&self) -> Offset
Sourcepub fn set_paint_offset(&mut self, value: Offset)
pub fn set_paint_offset(&mut self, value: Offset)
Sets paint_offset.
Sourcepub fn apply_paint_transform(&self, transform: &mut Matrix4)
pub fn apply_paint_transform(&self, transform: &mut Matrix4)
Trait Implementations§
Source§impl ContainerParentDataMixin for SliverPhysicalContainerParentData
impl ContainerParentDataMixin for SliverPhysicalContainerParentData
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 SliverPhysicalContainerParentData
impl Default for SliverPhysicalContainerParentData
Source§fn default() -> SliverPhysicalContainerParentData
fn default() -> SliverPhysicalContainerParentData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SliverPhysicalContainerParentData
impl RefUnwindSafe for SliverPhysicalContainerParentData
impl Send for SliverPhysicalContainerParentData
impl Sync for SliverPhysicalContainerParentData
impl Unpin for SliverPhysicalContainerParentData
impl UnsafeUnpin for SliverPhysicalContainerParentData
impl UnwindSafe for SliverPhysicalContainerParentData
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