summaryrefslogtreecommitdiff
path: root/src/shared/format-table.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-06 15:36:50 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-06 15:40:15 +0200
commitb0395c11768967e2c463c5721163ebaa3a277593 (patch)
tree90a93c57bde5af384038b1a0c32b3f5a1c57ffbf /src/shared/format-table.h
parent45d82c3f1c47b79898b03ee89062d502e720b8d5 (diff)
downloadsystemd-b0395c11768967e2c463c5721163ebaa3a277593.tar.gz
format-table: support coloring the gap right of each cell individually
This is useful for underlining a whole row of cells: previously we couldn't underline the gap. Now we can.
Diffstat (limited to 'src/shared/format-table.h')
-rw-r--r--src/shared/format-table.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/format-table.h b/src/shared/format-table.h
index 62f1ed740d..20b4ebd39b 100644
--- a/src/shared/format-table.h
+++ b/src/shared/format-table.h
@@ -47,6 +47,8 @@ typedef enum TableDataType {
TABLE_SET_ALIGN_PERCENT,
TABLE_SET_ELLIPSIZE_PERCENT,
TABLE_SET_COLOR,
+ TABLE_SET_RGAP_COLOR,
+ TABLE_SET_BOTH_COLORS,
TABLE_SET_URL,
TABLE_SET_UPPERCASE,
@@ -89,6 +91,7 @@ int table_set_weight(Table *t, TableCell *cell, unsigned weight);
int table_set_align_percent(Table *t, TableCell *cell, unsigned percent);
int table_set_ellipsize_percent(Table *t, TableCell *cell, unsigned percent);
int table_set_color(Table *t, TableCell *cell, const char *color);
+int table_set_rgap_color(Table *t, TableCell *cell, const char *color);
int table_set_url(Table *t, TableCell *cell, const char *url);
int table_set_uppercase(Table *t, TableCell *cell, bool b);