ferroui_controls/split_view/split_view_display_mode.rs
1/// Defines constants for how the pane of a split view should display.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3#[repr(i32)]
4pub enum SplitViewDisplayMode {
5 /// Pane is displayed next to content, and does not auto collapse when
6 /// tapped outside.
7 #[default]
8 Inline = 0,
9 /// Pane is displayed next to content. When collapsed, pane is still
10 /// visible according to the compact pane length. Pane does not auto
11 /// collapse when tapped outside.
12 CompactInline = 1,
13 /// Pane is displayed above content. Pane collapses when tapped outside.
14 Overlay = 2,
15 /// Pane is displayed above content. When collapsed, pane is still
16 /// visible according to the compact pane length. Pane collapses when
17 /// tapped outside.
18 CompactOverlay = 3,
19}