pub struct SplitterLayout {
pub id: SplitId,
pub rect: DockRect,
pub axis: SplitAxis,
pub bounds: DockRect,
}Expand description
One draggable divider placed on screen.
Fields§
§id: SplitIdHandle to pass back to DockTree::set_ratio.
rect: DockRectGrab band, already thickened to SPLITTER_THICKNESS.
axis: SplitAxisWhich way dragging it moves the boundary.
bounds: DockRectArea the split governs — the caller needs it to turn a pointer position back into a ratio.
Trait Implementations§
Source§impl Clone for SplitterLayout
impl Clone for SplitterLayout
Source§fn clone(&self) -> SplitterLayout
fn clone(&self) -> SplitterLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplitterLayout
impl Debug for SplitterLayout
Source§impl PartialEq for SplitterLayout
impl PartialEq for SplitterLayout
Source§fn eq(&self, other: &SplitterLayout) -> bool
fn eq(&self, other: &SplitterLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SplitterLayout
Auto Trait Implementations§
impl Freeze for SplitterLayout
impl RefUnwindSafe for SplitterLayout
impl Send for SplitterLayout
impl Sync for SplitterLayout
impl Unpin for SplitterLayout
impl UnsafeUnpin for SplitterLayout
impl UnwindSafe for SplitterLayout
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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