FILES' drawing: the two panes with their headers, rows and scroll bars, the message line and the footer, NEW's choice, the DELETE question, the INFO box, the progress box and the keyboard. files_screen.c holds the state; files_int.h is what the screen's three files share.
More...
|
| const char * | fs_kind_word (int kind) |
| | The words of entry kind kind.
|
| static void | cut_cells (const char *src, int cells, char *out, size_t n) |
| | src cut to cells cells: whole when it fits, else its first cells and "..", never inside a character.
|
| static void | tail_cells (const char *src, int cells, char *out, size_t n) |
| | src cut from its front to cells cells: ".." and its end.
|
| static void | draw_header (gfx_canvas_t *c, int i) |
| | A pane's header row: UP with the folder's path, PREV and NEXT while the folder holds more than its page.
|
| static void | heading (int i, char *out, size_t n) |
| | A pane's heading: how many entries the folder holds and which of them the page shows, and how many were not listed.
|
| static void | draw_empty (gfx_canvas_t *c, int i) |
| | The lines a pane with no rows shows in their place.
|
| static const char * | state_word (const fm_entry_t *e) |
| | The word in the warning colour after an entry's kind: the logger writes it, the servo programmer's record, a folder the bench keeps; NULL for none.
|
| static void | draw_row (gfx_canvas_t *c, int i, int idx, int y) |
| | One row: the icon, the name and its kind line, the size.
|
| static void | draw_bar (gfx_canvas_t *c, int i) |
| | Pane i's scroll bar.
|
| static void | draw_pane (gfx_canvas_t *c, int i) |
| | One pane: its header, its list's panel and rows, its bar. The active pane's heading is an accent tag; the other's is dim text.
|
| static void | draw_message (gfx_canvas_t *c) |
| | The message line: the last result or refusal, else the write gate's sentence while it is shut.
|
| static void | draw_footer (gfx_canvas_t *c) |
| | The footer's buttons, each dimmed while it would be refused.
|
| static void | draw_new (gfx_canvas_t *c) |
| | NEW's choice over the panes: FOLDER and TEXT FILE.
|
| static void | draw_question (gfx_canvas_t *c) |
| | The DELETE question: the entry and its size, what goes, CANCEL and DELETE.
|
| static void | info_row (gfx_canvas_t *c, int y, const char *key, const char *value, gfx_color_t col) |
| | One row of INFO: its key and its value.
|
| static const char * | rule_words (const fm_entry_t *e) |
| | INFO's Rule row: what the bench keeps the entry from.
|
| static void | draw_info (gfx_canvas_t *c) |
| | The INFO box: name, folder, kind, size or entries, time, rule, and CLOSE.
|
| static void | draw_job (gfx_canvas_t *c) |
| | The progress box: the job and its entry, the target, a copy's bar and bytes, and a copy's CANCEL.
|
| static bool | job_box_shows (void) |
| | Whether the progress box shows: a copy's at once, a single call's once it has run FS_JOB_BOX_S.
|
| void | fs_render (gfx_canvas_t *c, int buffer_index) |
| | FILES drawn: the panes and the footer, or a box over them, and the keyboard on top.
|
FILES' drawing: the two panes with their headers, rows and scroll bars, the message line and the footer, NEW's choice, the DELETE question, the INFO box, the progress box and the keyboard. files_screen.c holds the state; files_int.h is what the screen's three files share.
SPDX-License-Identifier: MIT