diff options
| author | Federico Angelilli <code@fedang.net> | 2024-07-12 23:08:30 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-07-12 23:08:30 +0200 |
| commit | c6dc8e969c84b1980dcebd5dc3a59d112fa61c53 (patch) | |
| tree | 3ed902af74b7122c5424117b041442a558e35e3c /src/block.h | |
| parent | aac1310ed0b9983a4a4a29ac469405d70465c278 (diff) | |
Start parsing blocks
Diffstat (limited to 'src/block.h')
| -rw-r--r-- | src/block.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/block.h b/src/block.h index 9468373..9c663b1 100644 --- a/src/block.h +++ b/src/block.h @@ -38,16 +38,18 @@ typedef void (*block_update_t)(block_t *block); struct block { block_type_t type; char *label; + bool active; + struct timespec update_interval; + struct timespec update_last; + block_update_t update_cb; + block_event_t event_cb; + bool hidden; color_t color; color_t line_color; int line_width; int x_padding, y_padding; int min_width, max_width; - struct timespec update_interval; - struct timespec update_last; - block_update_t update_cb; - block_event_t event_cb; union { struct { char *text; @@ -58,7 +60,7 @@ struct block { struct { int spacing; int n_children; - struct block *children; + struct block **children; } group; }; }; |
