diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-04-21 21:47:41 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-04-22 15:29:48 +0200 |
commit | 0dd9388efcd966197bda65c131d176cf0ac63c60 (patch) | |
tree | a81e28ba18f02ecae073e511a3f2a09dd21ab080 /ui.h | |
parent | e6186a3285928bf6fb798a4685d294ef9f3d0686 (diff) |
ui: Print empty rows when clearing table
Fill table with empty rows while clearing.
It will allow to get rid of clear() & refresh() each time
before print the flows list.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ui.h')
-rw-r--r-- | ui.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -29,12 +29,14 @@ struct ui_table { int hdr_color; int col_pad; int width; + int height; }; extern void ui_table_init(struct ui_table *tbl); extern void ui_table_uninit(struct ui_table *tbl); -extern void ui_table_pos_set(struct ui_table *tbl, int y, int x); extern void ui_table_clear(struct ui_table *tbl); +extern void ui_table_pos_set(struct ui_table *tbl, int y, int x); +extern void ui_table_height_set(struct ui_table *tbl, int height); extern void ui_table_col_add(struct ui_table *tbl, uint32_t id, char *name, uint32_t len); |