[−][src]Struct broot::command::PanelInput
wrap the input of a panel, receive events and make commands
Fields
input_field: InputField
Implementations
impl PanelInput
[src]
pub fn new(area: Area) -> Self
[src]
pub fn set_content(&mut self, content: &str)
[src]
pub fn get_content(&self) -> String
[src]
pub fn display(
&mut self,
w: &mut W,
active: bool,
area: Area,
panel_skin: &PanelSkin
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut W,
active: bool,
area: Area,
panel_skin: &PanelSkin
) -> Result<(), ProgramError>
pub fn on_event(
&mut self,
w: &mut W,
event: Event,
con: &AppContext,
state: &dyn AppState
) -> Result<Command, ProgramError>
[src]
&mut self,
w: &mut W,
event: Event,
con: &AppContext,
state: &dyn AppState
) -> Result<Command, ProgramError>
consume the event to
- maybe change the input
- build a command
Auto Trait Implementations
impl RefUnwindSafe for PanelInput
impl Send for PanelInput
impl Sync for PanelInput
impl Unpin for PanelInput
impl UnwindSafe for PanelInput
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,