summaryrefslogtreecommitdiffstats
path: root/include/swaynag/types.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-08-02 09:28:13 -0400
committerLibravatar GitHub <noreply@github.com>2018-08-02 09:28:13 -0400
commitea14ef40955a94e21a5198d2469e54fe1e6056e5 (patch)
tree1a28ee032b762f471917c1f175ba02500f9ef794 /include/swaynag/types.h
parentRevert "Fix popups" (diff)
parentMerge branch 'master' into nagbar (diff)
downloadsway-ea14ef40955a94e21a5198d2469e54fe1e6056e5.tar.gz
sway-ea14ef40955a94e21a5198d2469e54fe1e6056e5.tar.zst
sway-ea14ef40955a94e21a5198d2469e54fe1e6056e5.zip
Merge pull request #2366 from RedSoxFan/nagbar
Implement swaynag
Diffstat (limited to 'include/swaynag/types.h')
-rw-r--r--include/swaynag/types.h39
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
4struct 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
27void swaynag_types_add_default(list_t *types);
28
29struct swaynag_type *swaynag_type_get(list_t *types, char *name);
30
31struct swaynag_type *swaynag_type_clone(struct swaynag_type *type);
32
33void swaynag_type_merge(struct swaynag_type *dest, struct swaynag_type *src);
34
35void swaynag_type_free(struct swaynag_type *type);
36
37void swaynag_types_free(list_t *types);
38
39#endif