Skip to main content

waft_material/compose/
back_navigation_behavior.rs

1//! How a back gesture moves through a pane scene's entries.
2
3/// How a back gesture moves through a pane scene's entries.
4#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
5pub enum BackNavigationBehavior {
6    /// Remove exactly one entry.
7    PopLatest,
8    /// Remove entries until the shown panes change; the default.
9    #[default]
10    PopUntilScaffoldValueChange,
11    /// Remove entries until the current destination's pane changes.
12    PopUntilCurrentDestinationChange,
13    /// Remove entries until the current destination's content or the shown panes change.
14    PopUntilContentChange,
15}