Struct broot::command::PanelInput [−][src]
pub struct PanelInput {
pub input_field: InputField,
// some fields omitted
}
Expand description
Wrap the input of a panel, receive events and make commands
Fields
input_field: InputField
Implementations
pub fn display(
&mut self,
w: &mut W,
active: bool,
mode: Mode,
area: Area,
panel_skin: &PanelSkin
) -> Result<(), ProgramError>
pub fn on_event(
&mut self,
w: &mut W,
event: TimedEvent,
con: &AppContext,
sel_info: SelInfo<'_>,
app_state: &AppState,
mode: Mode
) -> Result<Command, ProgramError>
pub fn on_event(
&mut self,
w: &mut W,
event: TimedEvent,
con: &AppContext,
sel_info: SelInfo<'_>,
app_state: &AppState,
mode: Mode
) -> Result<Command, ProgramError>
consume the event to
- maybe change the input
- build a command then redraw the input field