==> include/tui/sparkline.h <==1/* @ajax/tui-sparkline: ratatui's Sparkline: one column per value, bars in eighths of a cell
2 * scaled to max (or the largest value), drawn bottom up. */
3#ifndef TUI_SPARKLINE_H
4#define TUI_SPARKLINE_H
5
6#include "tui/block.h"
7
8typedef struct {
9 const uint64_t *data;
10 size_t n;
11 bool has_max;
12 uint64_t max;
13 tui_style style;
14 const tui_block *block;
15 bool right_to_left;
16} tui_sparkline;
17
18void tui_sparkline_render(tui_arena *a, const tui_sparkline *s, tui_rect area, tui_buffer *buf);
19
20#endif