diff options
Diffstat (limited to 'include/swaynag/types.h')
-rw-r--r-- | include/swaynag/types.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/swaynag/types.h b/include/swaynag/types.h new file mode 100644 index 00000000..2183ce22 --- /dev/null +++ b/include/swaynag/types.h | |||
@@ -0,0 +1,39 @@ | |||
1 | #ifndef _SWAYNAG_TYPES_H | ||
2 | #define _SWAYNAG_TYPES_H | ||
3 | |||
4 | struct swaynag_type { | ||
5 | char *name; | ||
6 | |||
7 | char *font; | ||
8 | char *output; | ||
9 | uint32_t anchors; | ||
10 | |||
11 | uint32_t button_background; | ||
12 | uint32_t background; | ||
13 | uint32_t text; | ||
14 | uint32_t border; | ||
15 | uint32_t border_bottom; | ||
16 | |||
17 | uint32_t bar_border_thickness; | ||
18 | uint32_t message_padding; | ||
19 | uint32_t details_border_thickness; | ||
20 | uint32_t button_border_thickness; | ||
21 | uint32_t button_gap; | ||
22 | uint32_t button_gap_close; | ||
23 | uint32_t button_margin_right; | ||
24 | uint32_t button_padding; | ||
25 | }; | ||
26 | |||
27 | void swaynag_types_add_default(list_t *types); | ||
28 | |||
29 | struct swaynag_type *swaynag_type_get(list_t *types, char *name); | ||
30 | |||
31 | struct swaynag_type *swaynag_type_clone(struct swaynag_type *type); | ||
32 | |||
33 | void swaynag_type_merge(struct swaynag_type *dest, struct swaynag_type *src); | ||
34 | |||
35 | void swaynag_type_free(struct swaynag_type *type); | ||
36 | |||
37 | void swaynag_types_free(list_t *types); | ||
38 | |||
39 | #endif | ||