summaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui.h b/ui.h
index ff55606..7f4814c 100644
--- a/ui.h
+++ b/ui.h
@@ -11,6 +11,12 @@ enum ui_align {
UI_ALIGN_RIGHT,
};
+struct ui_text {
+ chtype *str;
+ size_t slen;
+ size_t len;
+};
+
struct ui_col {
struct list_head entry;
uint32_t id;
@@ -26,6 +32,7 @@ struct ui_table {
int x;
int rows_y;
struct list_head cols;
+ struct ui_text *row;
int hdr_color;
int col_pad;
int width;
@@ -44,6 +51,7 @@ extern void ui_table_col_color_set(struct ui_table *tbl, int col_id, int color);
extern void ui_table_col_align_set(struct ui_table *tbl, int col_id, enum ui_align align);
extern void ui_table_row_add(struct ui_table *tbl);
+extern void ui_table_row_show(struct ui_table *tbl);
extern void ui_table_row_print(struct ui_table *tbl, uint32_t col_id,
const char *str);