pub struct CmdLine<U: Ui> { /* private fields */ }Expand description
A multi purpose text widget
This widget, as the name implies, is most associated with running commands. However, it can have a variety of modes, granting it differing functionality. In Duat, there are 3 predefined modes:
RunCommands, which runs commands (duh);ShowNotifications, which shows notifications, usually about commands;IncSearch<Inc>, which will perform an incremental search, based onInc.
By default, Duat will have the "CmdLineNotifications" hook
active. This hook changes the mode of the CmdLine to
ShowNotifications whenever it is unfocused. If you don’t want
this functionality, or want notifications somewhere else, you can
use hooks::remove.
Trait Implementations§
Source§impl<U: Ui> Widget<U> for CmdLine<U>
impl<U: Ui> Widget<U> for CmdLine<U>
Source§type Cfg = CmdLineCfg<U>
type Cfg = CmdLineCfg<U>
The configuration type
Source§fn once() -> Result<(), Error<()>>
fn once() -> Result<(), Error<()>>
Actions taken when this widget opens for the first time Read more
Source§fn on_unfocus(&mut self, _area: &<U as Ui>::Area)
fn on_unfocus(&mut self, _area: &<U as Ui>::Area)
Actions to do whenever this
Widget is unfocused.Auto Trait Implementations§
impl<U> !Freeze for CmdLine<U>
impl<U> !RefUnwindSafe for CmdLine<U>
impl<U> Send for CmdLine<U>
impl<U> Sync for CmdLine<U>
impl<U> Unpin for CmdLine<U>
impl<U> !UnwindSafe for CmdLine<U>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more