skip to content
==> include/mesh/top_ui.h <==
1/* @ajax/mesh-top-ui: mesh-top's frame (crates/mesh-top src/ui.rs's draw): the tab bar, the current
2 * tab's panes, the key help and last reply in the status bar, and the prompt over the body. Every
3 * value comes from a snapshot (or a trace / log / view reply) through mesh-top-snap's accessors;
4 * nothing here talks to the network. */
5#ifndef MESH_TOP_UI_H
6#define MESH_TOP_UI_H
7
8#include "mesh/top_ui_kit.h"
9
10/* Draws one frame of the app into buf (its area is the terminal); a is the frame's arena. */
11void mt_ui_draw(tui_arena *a, tui_buffer *buf, const mt_app *app, mt_instant now);
12/* What a terminal shows after the frame is flushed onto a blank screen (ratatui's diff onto
13 * TestBackend): the cells a wide symbol covers stay blank. out must have frame's area. */
14void mt_ui_flush(const tui_buffer *frame, tui_buffer *out);
15
16#endif