Struct mg::Mg [] [src]

pub struct Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
{ /* fields omitted */ }

Methods

impl<COMM, SETT> Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

[src]

Get the default completers. One to complete the commands, the other to complete the settings.

[src]

Delete the current completion item.

[src]

Show the completion view.

[src]

Update the items of the completion view.

impl<COMM, SETT> Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

[src]

Get the color of the text.

[src]

Reset the background and foreground colors of the status bar.

[src]

Use the dark variant of the theme if available.

impl<COMM, SETT> Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

[src]

Convert an action String to a command String.

[src]

Handle the command entry activate event.

[src]

Execute the commands and show the errors contained in the parse result.

[src]

Handle the command activate event.

[src]

Handle a special command activate or key press event.

impl<COMM, SETT> Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

[src]

Ask a question to the user and block until the user provides it (or cancel).

[src]

Ask a question to the user and block until the user provides it (or cancel).

[src]

Ask a multiple-choice question to the user and block until the user provides it (or cancel).

[src]

Show a blocking yes/no question.

[src]

Ask a question to the user.

[src]

Ask a multiple-choice question to the user.

[src]

Set the answer to return to the caller of the dialog.

[src]

Show a dialog created with a DialogBuilder.

[src]

Show a dialog created with a DialogBuilder which does not contain shortcut.

[src]

Show a yes/no question.

impl<COMM, SETT> Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

[src]

Check if the key should be inhibitted.

[src]

Handle the key press event.

[src]

Handle the key release event.

impl<COMM, SETT> Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

[src]

Add the key to the current shortcut.

[src]

Clear the current shortcut buffer.

[src]

Handle a shortcut in input mode.

[src]

Check if the key should be inhibitted for the shortcut.

[src]

Handle a possible input of a shortcut.

impl<COMM, SETT> Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

[src]

Set the current status bar input completer.

Trait Implementations

impl<COMM, SETT> Widget for Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

An Mg application window contains a status bar where the user can type a command and a central widget.

[src]

Update the view after it is initially created. This method is only useful when using the #[widget] attribute, because when not using it, you can use the view() method instead. Read more

[src]

Create the initial view.

The type of the root widget.

[src]

Get the root widget of the view.e. the root widget of the view.

[src]

Method called when the widget is added to its parent.

[src]

Get the parent ID. This is useful for custom Container implementation: when you implement the Container::add_widget(), you might want to insert widgets elsewhere depending of this id. Read more

[src]

Create the window from this widget and start the main loop.

impl<COMM, SETT> Container for Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

The type of the containing widget, i.e. where the child widgets will be added.

Type to contain the additional container widgets.

[src]

Get the containing widget, i.e. the widget where the children will be added.

[src]

Get additional container widgets. This is useful to create a multi-container. Read more

[src]

Add a relm widget to this container. Return the widget that will be send to Widget::on_add(). Read more

impl<COMM, SETT> Update for Mg<COMM, SETT> where
    COMM: Clone + EnumFromStr + EnumMetaData + SpecialCommand + 'static,
    SETT: Default + EnumMetaData + Settings + SettingCompletion + 'static, 
[src]

The type of the messages sent to the update() method.

The type of the model.

The type of the parameter of the model() function used to initialize the model.

[src]

Method called when a message is received from an event.

[src]

Create the initial model.

Connect the subscriptions. Subscriptions are Future/Stream that are spawn when the object is created. Read more