diff options
Diffstat (limited to 'src/blocks/text.c')
| -rw-r--r-- | src/blocks/text.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/blocks/text.c b/src/blocks/text.c new file mode 100644 index 0000000..74df3c3 --- /dev/null +++ b/src/blocks/text.c @@ -0,0 +1,16 @@ +#include "info.h" + +static const config_entry_t block_text_entries[] = { + { "text", CONFIG_STRING, offsetof(block_t, text.text) }, + { "text-color", CONFIG_COLOR, offsetof(block_t, text.text_color) }, + { "text-size", CONFIG_INT, offsetof(block_t, text.text_size) }, + { 0 }, +}; + +const config_block_t block_text_info = { + .type_name = "text", + .type_size = 0, + .base = { 0 }, + .entries = block_text_entries, + .apply = NULL, +}; |
