pub struct Stack { /* private fields */ }Expand description
层叠容器 widget——子组件共享同一区域,按添加顺序自底向上渲染
Implementations§
Trait Implementations§
Source§impl Component for Stack
impl Component for Stack
Source§fn for_each_child(&self, f: &mut dyn FnMut(&Node))
fn for_each_child(&self, f: &mut dyn FnMut(&Node))
遍历子节点(为焦点系统等提供统一的树遍历接口)
Source§fn for_each_child_mut(&mut self, f: &mut dyn FnMut(&mut Node))
fn for_each_child_mut(&mut self, f: &mut dyn FnMut(&mut Node))
遍历子节点(可变版本)
Source§fn measure(&self, constraint: Constraint, _cx: &mut MeasureCx) -> Size
fn measure(&self, constraint: Constraint, _cx: &mut MeasureCx) -> Size
测量组件在给定约束下的自适应尺寸 Read more
Auto Trait Implementations§
impl Freeze for Stack
impl !RefUnwindSafe for Stack
impl !Send for Stack
impl !Sync for Stack
impl Unpin for Stack
impl UnsafeUnpin for Stack
impl !UnwindSafe for Stack
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