Struct broot::app::Panel [−][src]
pub struct Panel {
pub id: PanelId,
pub areas: Areas,
pub purpose: PanelPurpose,
// some fields omitted
}
Expand description
A colon on screen containing a stack of states, the top one being visible
Fields
id: PanelId
areas: Areas
purpose: PanelPurpose
Implementations
pub fn apply_command<'c>(
&mut self,
w: &'c mut W,
cmd: &'c Command,
app_state: &mut AppState,
app_cmd_context: &'c AppCmdContext<'c>
) -> Result<CmdResult, ProgramError>
pub fn apply_command<'c>(
&mut self,
w: &'c mut W,
cmd: &'c Command,
app_state: &mut AppState,
app_cmd_context: &'c AppCmdContext<'c>
) -> Result<CmdResult, ProgramError>
apply a command on the current state, with no effect on screen
pub fn refresh_input_status<'c>(
&mut self,
app_state: &AppState,
app_cmd_context: &'c AppCmdContext<'c>
)
pub fn refresh_input_status<'c>(
&mut self,
app_state: &AppState,
app_cmd_context: &'c AppCmdContext<'c>
)
called on focusing the panel and before the display, this updates the status from the command read in the input
pub fn do_pending_task(
&mut self,
stage: &Stage,
screen: Screen,
con: &AppContext,
dam: &mut Dam
)
pub fn do_pending_task(
&mut self,
stage: &Stage,
screen: Screen,
con: &AppContext,
dam: &mut Dam
)
do the next pending task stopping as soon as there’s an event in the dam
pub fn add_event(
&mut self,
w: &mut W,
event: TimedEvent,
app_state: &AppState,
con: &AppContext
) -> Result<Command, ProgramError>
pub fn add_event(
&mut self,
w: &mut W,
event: TimedEvent,
app_state: &AppState,
con: &AppContext
) -> Result<Command, ProgramError>
return a new command Update the input field
remove the verb invocation from the input but keep the filter if there’s one
change the argument of the verb in the input, if there’s one
return true when the element has been removed
render the whole panel (state, status, purpose, input, flags)