pub struct SplitPane { /* private fields */ }Expand description
A resizable split pane with two children.
The divider position is controlled by ratio (0–100), representing the
percentage of space allocated to the first child. Use Ctrl+←/→ (horizontal)
or Ctrl+↑/↓ (vertical) to adjust the ratio.
Implementations§
Source§impl SplitPane
impl SplitPane
Trait Implementations§
Source§impl Component for SplitPane
impl Component for SplitPane
Source§fn measure(&self, constraint: Constraint, _cx: &mut MeasureCx) -> Size
fn measure(&self, constraint: Constraint, _cx: &mut MeasureCx) -> Size
测量组件在给定约束下的自适应尺寸 Read more
Source§fn layout(&mut self, rect: Rect, _cx: &mut LayoutCx<'_>)
fn layout(&mut self, rect: Rect, _cx: &mut LayoutCx<'_>)
布局回调——组件在此计算子节点 rect 并调用 child.layout() Read more
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))
遍历子节点(可变版本)
Auto Trait Implementations§
impl !Freeze for SplitPane
impl !RefUnwindSafe for SplitPane
impl !Send for SplitPane
impl !Sync for SplitPane
impl Unpin for SplitPane
impl UnsafeUnpin for SplitPane
impl !UnwindSafe for SplitPane
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