pub struct ToolbarItemsParentData {
pub should_paint: bool,
/* private fields */
}Expand description
Parent data that determines whether or not to paint the corresponding child.
Used in the layout of the Cupertino and Material text selection menus, which decide whether or not to paint their buttons after laying them out and determining where they overflow.
Fields§
§should_paint: boolWhether or not this child is painted.
Children in the selection toolbar may be laid out for measurement purposes but not painted. This allows these children to be identified.
Implementations§
Source§impl ToolbarItemsParentData
impl ToolbarItemsParentData
Sourcepub const fn new() -> ToolbarItemsParentData
pub const fn new() -> ToolbarItemsParentData
Creates parent data that does not paint the child.
Trait Implementations§
Source§impl ContainerBoxParentData for ToolbarItemsParentData
impl ContainerBoxParentData for ToolbarItemsParentData
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 ToolbarItemsParentData
impl ContainerParentDataMixin for ToolbarItemsParentData
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 ToolbarItemsParentData
impl Debug for ToolbarItemsParentData
Source§impl Default for ToolbarItemsParentData
impl Default for ToolbarItemsParentData
Source§fn default() -> ToolbarItemsParentData
fn default() -> ToolbarItemsParentData
Returns the “default value” for a type. Read more
Source§impl Display for ToolbarItemsParentData
impl Display for ToolbarItemsParentData
Auto Trait Implementations§
impl Forget for ToolbarItemsParentData
impl Freeze for ToolbarItemsParentData
impl Move for ToolbarItemsParentData
impl RefUnwindSafe for ToolbarItemsParentData
impl Send for ToolbarItemsParentData
impl Sync for ToolbarItemsParentData
impl Unpin for ToolbarItemsParentData
impl UnsafeUnpin for ToolbarItemsParentDatawhere
NonZeroU32Inner: UnsafeUnpin,
&'static RenderBoxVTable: UnsafeUnpin,
impl UnwindSafe for ToolbarItemsParentData
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