[−][src]Trait broot::app::AppState
a whole application state, stackable to allow reverting to a previous one
Required methods
fn on_internal(
&mut self,
w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>
&mut self,
w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>
execute the internal with the optional given invocation.
The invocation comes from the input and may be related to a different verb (the verb may have been triggered by a key shorctut)
fn selected_path(&self) -> &Path
fn selection_type(&self) -> SelectionType
fn refresh(&mut self, screen: &Screen, con: &AppContext) -> Command
fn do_pending_task(
&mut self,
screen: &mut Screen,
con: &AppContext,
dam: &mut Dam
)
&mut self,
screen: &mut Screen,
con: &AppContext,
dam: &mut Dam
)
fn get_pending_task(&self) -> Option<&'static str>
fn display(
&mut self,
w: &mut W,
screen: &Screen,
state_area: Area,
skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
&mut self,
w: &mut W,
screen: &Screen,
state_area: Area,
skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
fn get_status(
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
con: &AppContext
) -> Status
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
con: &AppContext
) -> Status
fn get_flags(&self) -> Vec<Flag>
return the flags to display
Provided methods
fn clear_pending(&mut self)
called on start of on_command
fn on_click(
&mut self,
_x: u16,
_y: u16,
_screen: &mut Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
&mut self,
_x: u16,
_y: u16,
_screen: &mut Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn on_double_click(
&mut self,
_x: u16,
_y: u16,
_screen: &mut Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
&mut self,
_x: u16,
_y: u16,
_screen: &mut Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn on_pattern(
&mut self,
_pat: InputPattern,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
&mut self,
_pat: InputPattern,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn on_command(
&mut self,
w: &mut W,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>
&mut self,
w: &mut W,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>
change the state, does no rendering
fn get_starting_input(&self) -> String
Implementors
impl AppState for BrowserState
[src]
fn get_pending_task(&self) -> Option<&'static str>
[src]
fn get_status(
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
con: &AppContext
) -> Status
[src]
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
con: &AppContext
) -> Status
fn selected_path(&self) -> &Path
[src]
fn selection_type(&self) -> SelectionType
[src]
fn clear_pending(&mut self)
[src]
fn on_click(
&mut self,
_x: u16,
y: u16,
_screen: &mut Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
_x: u16,
y: u16,
_screen: &mut Screen,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn on_double_click(
&mut self,
_x: u16,
y: u16,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
_x: u16,
y: u16,
screen: &mut Screen,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn on_pattern(
&mut self,
pat: InputPattern,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
pat: InputPattern,
_con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
fn on_internal(
&mut self,
w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
trigger_type: TriggerType,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>
fn do_pending_task(
&mut self,
screen: &mut Screen,
con: &AppContext,
dam: &mut Dam
)
[src]
&mut self,
screen: &mut Screen,
con: &AppContext,
dam: &mut Dam
)
do some work, totally or partially, if there's some to do. Stop as soon as the dam asks for interruption
fn display(
&mut self,
w: &mut W,
_screen: &Screen,
area: Area,
panel_skin: &PanelSkin,
_con: &AppContext
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut W,
_screen: &Screen,
area: Area,
panel_skin: &PanelSkin,
_con: &AppContext
) -> Result<(), ProgramError>
fn refresh(&mut self, screen: &Screen, con: &AppContext) -> Command
[src]
fn get_flags(&self) -> Vec<Flag>
[src]
fn get_starting_input(&self) -> String
[src]
impl AppState for HelpState
[src]
fn get_pending_task(&self) -> Option<&'static str>
[src]
fn selected_path(&self) -> &Path
[src]
fn selection_type(&self) -> SelectionType
[src]
fn refresh(&mut self, _screen: &Screen, _con: &AppContext) -> Command
[src]
fn do_pending_task(
&mut self,
_screen: &mut Screen,
_con: &AppContext,
_dam: &mut Dam
)
[src]
&mut self,
_screen: &mut Screen,
_con: &AppContext,
_dam: &mut Dam
)
fn display(
&mut self,
w: &mut W,
screen: &Screen,
state_area: Area,
panel_skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut W,
screen: &Screen,
state_area: Area,
panel_skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
fn get_status(
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
con: &AppContext
) -> Status
[src]
&self,
cmd: &Command,
other_path: &Option<PathBuf>,
con: &AppContext
) -> Status
fn on_internal(
&mut self,
_w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
_trigger_type: TriggerType,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
_w: &mut W,
internal_exec: &InternalExecution,
input_invocation: Option<&VerbInvocation>,
_trigger_type: TriggerType,
cc: &CmdContext,
screen: &mut Screen
) -> Result<AppStateCmdResult, ProgramError>