#![doc = include_str!("../readme.md")]
#![allow(clippy::collapsible_else_if)]
#![allow(clippy::collapsible_if)]
#![allow(clippy::if_same_then_else)]
pub mod button;
pub mod calendar;
pub mod date_input;
pub mod input;
pub mod layout_dialog;
pub mod layout_edit;
pub mod layout_grid;
pub mod masked_input;
pub mod menuline;
pub mod msgdialog;
pub mod statusline;
pub mod textarea;
pub mod util;
pub use pure_rust_locales::Locale;
pub mod event {
    pub use rat_event::util::Outcome;
    pub use rat_event::{ConsumedEvent, FocusKeys, HandleEvent, MouseOnly};
    #[derive(Debug)]
    pub struct ReadOnly;
    #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
    pub enum TextOutcome {
        NotUsed,
        Unchanged,
        Changed,
        TextChanged,
    }
    impl ConsumedEvent for TextOutcome {
        fn is_consumed(&self) -> bool {
            *self != TextOutcome::NotUsed
        }
    }
    impl From<bool> for TextOutcome {
        fn from(value: bool) -> Self {
            if value {
                TextOutcome::Changed
            } else {
                TextOutcome::Unchanged
            }
        }
    }
    impl From<TextOutcome> for Outcome {
        fn from(value: TextOutcome) -> Self {
            match value {
                TextOutcome::NotUsed => Outcome::NotUsed,
                TextOutcome::Unchanged => Outcome::Unchanged,
                TextOutcome::Changed => Outcome::Changed,
                TextOutcome::TextChanged => Outcome::Changed,
            }
        }
    }
}
mod _private {
    #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct NonExhaustive;
}