Struct mg::InputDialog
[−]
[src]
pub struct InputDialog<WIDGET: Widget> { /* fields omitted */ }
Input dialog responder. This is used to specify which message to send to which widget when the user answers the dialog.
Methods
impl<WIDGET: Widget> InputDialog<WIDGET>[src]
fn new<F>(relm: &Relm<WIDGET>, callback: F) -> Self where
F: Fn(Option<String>) -> WIDGET::Msg + 'static, [src]
F: Fn(Option<String>) -> WIDGET::Msg + 'static,
Create a new input dialog responder.
The callback is a message constructor.
The message will be sent to relm stream.
Trait Implementations
impl<WIDGET: Widget> Responder for InputDialog<WIDGET>[src]
fn respond(&self, answer: DialogResult)[src]
Send the answer back. It can be to a widget or a channel. Read more