pub struct ThreePaneSceneStrategy {
pub directive: PaneScaffoldDirective,
pub adapt_strategies: ThreePaneScaffoldAdaptStrategies,
pub back_navigation_behavior: BackNavigationBehavior,
pub handles_single_pane_layout: bool,
}Expand description
How the trailing pane entries of a back stack share one page.
A back stack is the app’s own list of entries; back_stack[i] is None for an entry that is
not a pane, such as a settings page. The scene strategy never holds the stack: the app calls
calculate_scene on every build.
Fields§
§directive: PaneScaffoldDirectiveThe pane sizes and partitions.
adapt_strategies: ThreePaneScaffoldAdaptStrategiesHow each pane adapts when it has no partition.
How back moves through the scene.
handles_single_pane_layout: boolAlso make a scene when one pane is shown, instead of leaving each entry to its own page.
Implementations§
Source§impl ThreePaneSceneStrategy
impl ThreePaneSceneStrategy
Sourcepub fn list_detail(directive: PaneScaffoldDirective) -> ThreePaneSceneStrategy
pub fn list_detail(directive: PaneScaffoldDirective) -> ThreePaneSceneStrategy
The list-detail strategies, hiding extra panes and popping until the shown panes change.
Sourcepub fn supporting(directive: PaneScaffoldDirective) -> ThreePaneSceneStrategy
pub fn supporting(directive: PaneScaffoldDirective) -> ThreePaneSceneStrategy
The supporting-pane strategies, otherwise the same.
Sourcepub fn calculate_scene<T: PartialEq>(
&self,
back_stack: &[Option<ThreePaneScaffoldDestinationItem<T>>],
) -> Option<ThreePaneScaffoldScene>
pub fn calculate_scene<T: PartialEq>( &self, back_stack: &[Option<ThreePaneScaffoldDestinationItem<T>>], ) -> Option<ThreePaneScaffoldScene>
The trailing pane entries one page shows together.
None means every pane entry is its own page: either the last entry is not a pane, or
the trailing entries show one pane and
handles_single_pane_layout is false.