Function broot::display::status_line::write

source ·
pub fn write(
    w: &mut W,
    task: Option<&str>,
    status: &Status,
    area: &Area,
    panel_skin: &PanelSkin,
    screen: Screen
) -> Result<(), ProgramError>
Expand description

write the whole status line (task + status)

Examples found in repository?
src/app/panel.rs (lines 229-236)
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
    fn write_status(
        &self,
        w: &mut W,
        panel_skin: &PanelSkin,
        screen: Screen,
    ) -> Result<(), ProgramError> {
        let task = self.state().get_pending_task();
        status_line::write(
            w,
            task,
            &self.status,
            &self.areas.status,
            panel_skin,
            screen,
        )
    }