pub enum StrategyKind {
Sequence {
direction: Direction,
gap: f32,
},
MasterStack {
master_ratio: f32,
gap: f32,
},
Deck {
master_ratio: f32,
gap: f32,
},
CenteredMaster {
master_ratio: f32,
gap: f32,
},
BinarySplit {
spiral: bool,
ratio: f32,
gap: f32,
},
ColumnGrid {
columns: usize,
gap: f32,
},
Dashboard {
columns: usize,
gap: f32,
spans: Arc<[usize]>,
},
ActivePanel {
variant: ActivePanelVariant,
bar_height: f32,
},
Window {
size: usize,
gap: f32,
},
Slotted {
slots: Arc<[SlotDef]>,
gap: f32,
direction: Direction,
},
}Expand description
Behavioral strategy for a layout, determining how add/remove/move/focus mutations are applied to the tree.
Variants§
Sequence
Linear sequence of equal panels (split, columns).
MasterStack
One master panel with a vertical stack (master-stack).
Fields
Deck
Master panel with a deck of one-at-a-time stack panels (deck).
Fields
CenteredMaster
Master panel centered between two side stacks (centered-master).
Fields
BinarySplit
Recursive binary split (dwindle, spiral).
Fields
ColumnGrid
Uniform grid of panels (grid).
Dashboard
CSS-grid dashboard with per-card column spans (dashboard).
Fields
ActivePanel
Only one panel visible at a time (monocle, tabbed, stacked).
Fields
§
variant: ActivePanelVariantWhich sub-variant of active-panel layout.
Window
Scrollable window showing N adjacent panels (scrollable/NIRI).
Slotted
Fixed-slot layout with named positions (sidebar, holy-grail).
Implementations§
Source§impl StrategyKind
impl StrategyKind
Trait Implementations§
Source§impl Clone for StrategyKind
impl Clone for StrategyKind
Source§fn clone(&self) -> StrategyKind
fn clone(&self) -> StrategyKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StrategyKind
impl RefUnwindSafe for StrategyKind
impl Send for StrategyKind
impl Sync for StrategyKind
impl Unpin for StrategyKind
impl UnsafeUnpin for StrategyKind
impl UnwindSafe for StrategyKind
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