Skip to main content

ferroui_controls/page/
navigation_type.rs

1
2/// Describes the type of navigation that occurred.
3#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum NavigationType {
6    /// A page was pushed onto the navigation stack.
7    Push = 0,
8
9    /// The top page was popped from the navigation stack.
10    Pop = 1,
11
12    /// All pages above the root were popped.
13    PopToRoot = 2,
14
15    /// A page was inserted into the navigation stack.
16    Insert = 3,
17
18    /// A page was removed from the navigation stack.
19    Remove = 4,
20
21    /// The current page was replaced.
22    Replace = 5,
23
24    /// A page was pushed onto the modal stack.
25    PushModal = 6,
26
27    /// The top page was popped from the modal stack.
28    PopModal = 7,
29}