pub struct WidgetChildren { /* private fields */ }Implementations§
Source§impl WidgetChildren
impl WidgetChildren
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push<W>(&mut self, child: W)where
W: Widget + 'static,
pub fn push_pod(&mut self, child: WidgetPod)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_slice(&self) -> &[WidgetPod]
pub fn as_mut_slice(&mut self) -> &mut [WidgetPod]
pub fn measure_child( &mut self, index: usize, ctx: &mut MeasureCtx, constraints: Constraints, ) -> Size
pub fn intrinsic_size_child( &mut self, index: usize, ctx: &mut MeasureCtx, axis: Axis, available_cross: f32, ) -> IntrinsicSize
pub fn arrange_child( &mut self, index: usize, ctx: &mut ArrangeCtx, bounds: Rect, )
pub fn paint(&self, ctx: &mut PaintCtx)
pub fn semantics(&self, ctx: &mut SemanticsCtx)
pub fn visit_children(&self, visitor: &mut dyn WidgetPodVisitor)
pub fn visit_children_mut(&mut self, visitor: &mut dyn WidgetPodMutVisitor)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WidgetChildren
impl !Send for WidgetChildren
impl !Sync for WidgetChildren
impl !UnwindSafe for WidgetChildren
impl Forget for WidgetChildren
impl Freeze for WidgetChildren
impl Move for WidgetChildren
impl Unpin for WidgetChildren
impl UnsafeUnpin for WidgetChildren
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