[][src]Struct broot::app::Panel

pub struct Panel {
    pub id: PanelId,
    pub areas: Areas,
    pub purpose: PanelPurpose,
    // some fields omitted
}

A colon on screen containing a stack of states, the top one being visible

Fields

id: PanelIdareas: Areaspurpose: PanelPurpose

Implementations

impl Panel[src]

pub fn new(
    id: PanelId,
    state: Box<dyn AppState>,
    areas: Areas,
    con: &AppContext
) -> Self
[src]

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]

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]

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,