Skip to main content

ferroui_controls/
input_pane_aware_behavior.rs

1/// Specifies the behavior the
2/// [`InputPaneAwareDecorator`](crate::InputPaneAwareDecorator) takes when the
3/// input pane state changes.
4#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
5#[repr(i32)]
6pub enum InputPaneAwareBehavior {
7    /// The view doesn't resize or move the content when the input pane state
8    /// changes.
9    #[default]
10    None = 0,
11
12    /// The view moves the content vertically when the input pane state
13    /// changes. The content is not resized.
14    Pan = 1,
15
16    /// The view resizes the content when the input pane state changes.
17    Resize = 2,
18}