Go to the source code of this file.
|
enum | table_text_attr_flags_t {
TTAF_RESET = (1 << 0),
TTAF_BOLD = (1 << 1),
TTAF_DIM = (1 << 2),
TTAF_UNDERLINE = (1 << 3),
TTAF_FG_COLOR_SET = (1 << 4),
TTAF_BG_COLOR_SET = (1 << 5),
TTAF_FG_COLOR_BRIGHT = (1 << 6),
TTAF_BG_COLOR_BRIGHT = (1 << 7)
} |
|
enum | table_text_attr_color_t {
TTAC_BLACK = 0,
TTAC_RED = 1,
TTAC_GREEN = 2,
TTAC_YELLOW = 3,
TTAC_BLUE = 4,
TTAC_MAGENTA = 5,
TTAC_CYAN = 6,
TTAC_WHITE = 7
} |
|
enum | table_text_attr_align_t { TTAA_DEFAULT = 0,
TTAA_LEFT = 1,
TTAA_RIGHT = 2,
TTAA_CENTER = 3
} |
|
|
void | table_format_title (table_t *t, char *fmt,...) |
|
void | table_format_cell (table_t *t, int c, int r, char *fmt,...) |
|
void | table_set_cell_align (table_t *t, int c, int r, table_text_attr_align_t a) |
|
void | table_set_cell_fg_color (table_t *t, int c, int r, table_text_attr_color_t v) |
|
void | table_set_cell_bg_color (table_t *t, int c, int r, table_text_attr_color_t v) |
|
void | table_free (table_t *t) |
|
void | table_add_header_col (table_t *t, int n_strings,...) |
|
void | table_add_header_row (table_t *t, int n_strings,...) |
|
◆ table_text_attr_align_t
Enumerator |
---|
TTAA_DEFAULT | |
TTAA_LEFT | |
TTAA_RIGHT | |
TTAA_CENTER | |
Definition at line 51 of file table.h.
◆ table_text_attr_color_t
Enumerator |
---|
TTAC_BLACK | |
TTAC_RED | |
TTAC_GREEN | |
TTAC_YELLOW | |
TTAC_BLUE | |
TTAC_MAGENTA | |
TTAC_CYAN | |
TTAC_WHITE | |
Definition at line 39 of file table.h.
◆ table_text_attr_flags_t
Enumerator |
---|
TTAF_RESET | |
TTAF_BOLD | |
TTAF_DIM | |
TTAF_UNDERLINE | |
TTAF_FG_COLOR_SET | |
TTAF_BG_COLOR_SET | |
TTAF_FG_COLOR_BRIGHT | |
TTAF_BG_COLOR_BRIGHT | |
Definition at line 27 of file table.h.
◆ table_add_header_col()
void table_add_header_col |
( |
table_t * |
t, |
|
|
int |
n_strings, |
|
|
|
... |
|
) |
| |
◆ table_add_header_row()
void table_add_header_row |
( |
table_t * |
t, |
|
|
int |
n_strings, |
|
|
|
... |
|
) |
| |
◆ table_format_cell()
void table_format_cell |
( |
table_t * |
t, |
|
|
int |
c, |
|
|
int |
r, |
|
|
char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ table_format_title()
void table_format_title |
( |
table_t * |
t, |
|
|
char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ table_free()
◆ table_set_cell_align()
◆ table_set_cell_bg_color()
◆ table_set_cell_fg_color()
◆ format_table