Crate mg [−] [src]
Minimal UI library based on GTK+.
Re-exports
pub use app::Msg::Alert; |
pub use app::Msg::AppClose; |
pub use app::Msg::CloseWin; |
pub use app::Msg::Completers; |
pub use app::Msg::CompletionViewChange; |
pub use app::Msg::CustomCommand; |
pub use app::Msg::CustomDialog; |
pub use app::Msg::DarkTheme; |
pub use app::Msg::DeleteCompletionItem; |
pub use app::Msg::Error; |
pub use app::Msg::Info; |
pub use app::Msg::Message; |
pub use app::Msg::ModeChanged; |
pub use app::Msg::Question; |
pub use app::Msg::SetMode; |
pub use app::Msg::SetSetting; |
pub use app::Msg::SettingChanged; |
pub use app::Msg::Title; |
pub use app::Msg::Variables; |
pub use app::Msg::Warning; |
pub use app::status_bar::ItemMsg::Color; |
pub use app::status_bar::ItemMsg::Text; |
Modules
completion |
Trait and widget for input completion. |
Macros
char_slice | |
hash | |
static_slice |
Structs
BlockingInputDialog |
Blocking input dialog responder. This is used to send the message to a channel when the user answers the dialog. |
DialogBuilder |
Builder to create a new dialog. |
InputDialog |
Input dialog responder. This is used to specify which message to send to which widget when the user answers the dialog. |
Mg | |
Mode |
A mode contains a prefix (i.e. "i") and a name (i.e. "insert"). It can only specify whether a count can be shown for it. |
StatusBar | |
StatusBarItem |
Enums
DefaultConfig |
A directory or a file to create if it does not exist. |
DialogResult |
Struct representing a dialog result. A dialog result is either what the user typed in the input (Answer) or the string associated with the shortcut. |
Traits
Responder |
A Responder is a way to send back the answer of a dialog to the code that showed this dialog. |
Functions
blocking_dialog |
Ask a question to the user and block until the user provides it (or cancel). |
blocking_input |
Ask a question to the user and block until the user provides it (or cancel). |
blocking_question |
Ask a multiple-choice question to the user and block until the user provides it (or cancel). |
blocking_yes_no_question |
Show a blocking yes/no question. |
input |
Ask a question to the user. |
parse_config |
Parse a configuration file. |
question |
Ask a multiple-choice question to the user. |
yes_no_question |
Show a yes/no question. |
Type Definitions
Modes |
List of modes |