pub struct ThreePaneScaffoldValue {
pub primary: PaneAdaptedValue,
pub secondary: PaneAdaptedValue,
pub tertiary: PaneAdaptedValue,
}Expand description
Which panes the current window shows.
It is computed, never stored: two values that differ are two layouts.
Fields§
§primary: PaneAdaptedValueThe primary pane’s value.
secondary: PaneAdaptedValueThe secondary pane’s value.
tertiary: PaneAdaptedValueThe tertiary pane’s value.
Implementations§
Source§impl ThreePaneScaffoldValue
impl ThreePaneScaffoldValue
Sourcepub fn get(&self, role: ThreePaneScaffoldRole) -> PaneAdaptedValue
pub fn get(&self, role: ThreePaneScaffoldRole) -> PaneAdaptedValue
The value for role.
Sourcepub fn pane_count(&self) -> usize
pub fn pane_count(&self) -> usize
The number of panes shown, reflowed panes included.
Sourcepub fn calculate<T>(
max_horizontal_partitions: usize,
max_vertical_partitions: usize,
adapt_strategies: &ThreePaneScaffoldAdaptStrategies,
destination_history: &[ThreePaneScaffoldDestinationItem<T>],
) -> ThreePaneScaffoldValue
pub fn calculate<T>( max_horizontal_partitions: usize, max_vertical_partitions: usize, adapt_strategies: &ThreePaneScaffoldAdaptStrategies, destination_history: &[ThreePaneScaffoldDestinationItem<T>], ) -> ThreePaneScaffoldValue
The latest destinations take the partitions first, then Primary, Secondary, Tertiary.
Compose’s calculateThreePaneScaffoldValue without levitated panes: a pane with a
reflow strategy goes under its anchor only on a single column with a second vertical
partition.
Trait Implementations§
Source§impl Clone for ThreePaneScaffoldValue
impl Clone for ThreePaneScaffoldValue
impl Copy for ThreePaneScaffoldValue
Source§impl Debug for ThreePaneScaffoldValue
impl Debug for ThreePaneScaffoldValue
impl Eq for ThreePaneScaffoldValue
Source§impl PartialEq for ThreePaneScaffoldValue
impl PartialEq for ThreePaneScaffoldValue
impl StructuralPartialEq for ThreePaneScaffoldValue
Auto Trait Implementations§
impl Forget for ThreePaneScaffoldValue
impl Freeze for ThreePaneScaffoldValue
impl Move for ThreePaneScaffoldValue
impl RefUnwindSafe for ThreePaneScaffoldValue
impl Send for ThreePaneScaffoldValue
impl Sync for ThreePaneScaffoldValue
impl Unpin for ThreePaneScaffoldValue
impl UnsafeUnpin for ThreePaneScaffoldValue
impl UnwindSafe for ThreePaneScaffoldValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.