[−][src]Struct broot::app::Panel
A colon on screen containing a stack of states, the top one being visible
Fields
id: PanelId
areas: Areas
purpose: PanelPurpose
Implementations
impl Panel
[src]
pub fn new(
id: PanelId,
state: Box<dyn AppState>,
areas: Areas,
con: &AppContext
) -> Self
[src]
id: PanelId,
state: Box<dyn AppState>,
areas: Areas,
con: &AppContext
) -> Self
pub fn set_error(&mut self, text: String)
[src]
pub fn apply_command(
&mut self,
w: &mut W,
cmd: &Command,
other_path: &Option<PathBuf>,
screen: Screen,
panel_skin: &PanelSkin,
preview: Option<PanelId>,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
[src]
&mut self,
w: &mut W,
cmd: &Command,
other_path: &Option<PathBuf>,
screen: Screen,
panel_skin: &PanelSkin,
preview: Option<PanelId>,
con: &AppContext
) -> Result<AppStateCmdResult, ProgramError>
apply a command on the current state, with no effect on screen
pub fn refresh_input_status(
&mut self,
other_path: &Option<PathBuf>,
con: &AppContext
)
[src]
&mut self,
other_path: &Option<PathBuf>,
con: &AppContext
)
called on focusing the panel and before the display, this updates the status from the command read in the input
pub fn do_pending_tasks(
&mut self,
screen: Screen,
con: &AppContext,
dam: &mut Dam
) -> Result<bool, ProgramError>
[src]
&mut self,
screen: Screen,
con: &AppContext,
dam: &mut Dam
) -> Result<bool, ProgramError>
execute all the pending tasks until there's none remaining or the dam asks for interruption
pub fn add_event(
&mut self,
w: &mut W,
event: Event,
con: &AppContext
) -> Result<Command, ProgramError>
[src]
&mut self,
w: &mut W,
event: Event,
con: &AppContext
) -> Result<Command, ProgramError>
return a new command Update the input field
pub fn push_state(&mut self, new_state: Box<dyn AppState>)
[src]
pub fn mut_state(&mut self) -> &mut dyn AppState
[src]
pub fn state(&self) -> &dyn AppState
[src]
pub fn clear_input(&mut self)
[src]
pub fn clear_input_invocation(&mut self)
[src]
remove the verb invocation from the input but keep the filter if there's one
pub fn set_input_content(&mut self, content: &str)
[src]
pub fn get_input_content(&self) -> String
[src]
pub fn set_input_arg(&mut self, arg: String)
[src]
change the argument of the verb in the input, if there's one
pub fn remove_state(&mut self) -> bool
[src]
return true when the element has been removed
pub fn display(
&mut self,
w: &mut W,
active: bool,
screen: Screen,
panel_skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
[src]
&mut self,
w: &mut W,
active: bool,
screen: Screen,
panel_skin: &PanelSkin,
con: &AppContext
) -> Result<(), ProgramError>
render the whole panel (state, status, purpose, input, flags)
Auto Trait Implementations
impl !RefUnwindSafe for Panel
impl !Send for Panel
impl !Sync for Panel
impl Unpin for Panel
impl !UnwindSafe for Panel
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>,