duat_core::widgets

Trait CmdLineMode

Source
pub trait CmdLineMode<U: Ui>:
    Send
    + Sync
    + 'static {
    // Required method
    fn clone(&self) -> Self
       where Self: Sized;

    // Provided methods
    fn on_focus(&mut self, _text: &mut Text) { ... }
    fn on_unfocus(&mut self, _text: &mut Text) { ... }
    fn update(&mut self, _text: &mut Text) { ... }
    fn has_changed(&mut self) -> bool { ... }
    fn once()
       where Self: Sized { ... }
}

Required Methods§

Source

fn clone(&self) -> Self
where Self: Sized,

Provided Methods§

Source

fn on_focus(&mut self, _text: &mut Text)

Source

fn on_unfocus(&mut self, _text: &mut Text)

Source

fn update(&mut self, _text: &mut Text)

Source

fn has_changed(&mut self) -> bool

Source

fn once()
where Self: Sized,

Implementors§

Source§

impl<I: IncSearcher<U>, U: Ui> CmdLineMode<U> for IncSearch<I, U>

Source§

impl<U: Ui> CmdLineMode<U> for RunCommands<U>

Source§

impl<U: Ui> CmdLineMode<U> for ShowNotifications<U>