appcui 0.4.8

A feature-rich and cross-platform TUI/CUI framework for Rust, enabling modern terminal-based applications on Windows, Linux, and macOS. Includes built-in UI components like buttons, menus, list views, tree views, checkboxes, and more. Perfect for building fast and interactive CLI tools and text-based interfaces.
Documentation
/// Represents the type of mouse button that was pressed.
/// 
/// This enum defines the possible types of mouse buttons that can be pressed.
/// 
/// # Values
/// * `None` - No button was pressed.
/// * `Left` - The left mouse button was pressed.
/// * `Right` - The right mouse button was pressed.
/// * `Center` - The center mouse button was pressed.   
#[derive(Copy,Clone,Debug,PartialEq, Eq)]
#[repr(u8)]
pub enum MouseButton {
    None = 0,
    Left,
    Right,
    Center
}

#[cfg(feature = "EVENT_RECORDER")]
impl MouseButton {
    pub(crate) fn name(&self)->&'static str {
        match self {
            MouseButton::None => "None",
            MouseButton::Left => "Left",
            MouseButton::Right => "Right",
            MouseButton::Center => "Center",
        }
    }
}