pub struct SplitPaneScope { /* private fields */ }Expand description
A SplitPane and its builder.
Implementations§
Source§impl SplitPaneScope
impl SplitPaneScope
pub fn min(self, dp: f32) -> Self
pub fn max(self, dp: f32) -> Self
pub fn collapsible(self, collapsible: bool) -> Self
Sourcepub fn collapse_below(self, dp: f32) -> Self
pub fn collapse_below(self, dp: f32) -> Self
The split pane’s own width in dp below which it shows one pane at a time, the one
selected_index names. At or above it the panes are never stacked, and the design
system still decides between two columns and a side pane laid over the body.
Without it the line is the size class’s: stacked below 600 dp. 0 is the same as not calling this. The width is measured on the Renderer, so crossing the line sends the Host nothing. A negative or non-finite width is reported as a protocol error and the split pane is drawn as if it had none.
Sourcepub fn selected_index(self, index: usize) -> Self
pub fn selected_index(self, index: usize) -> Self
Which pane shows when only one fits: 0 the side pane, 1 the body.
pub fn on_change(self, handler: impl FnMut(f32) + 'static) -> Self
pub fn on_dismiss(self, handler: impl FnMut() + 'static) -> Self
Trait Implementations§
Source§impl Drop for SplitPaneScope
impl Drop for SplitPaneScope
Auto Trait Implementations§
impl !RefUnwindSafe for SplitPaneScope
impl !Send for SplitPaneScope
impl !Sync for SplitPaneScope
impl !UnwindSafe for SplitPaneScope
impl Forget for SplitPaneScope
impl Freeze for SplitPaneScope
impl Move for SplitPaneScope
impl Unpin for SplitPaneScope
impl UnsafeUnpin for SplitPaneScope
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