summaryrefslogtreecommitdiffstats
path: root/include/swaynag/types.h
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-08-02 23:49:25 +0100
committerLibravatar GitHub <noreply@github.com>2018-08-02 23:49:25 +0100
commit3a54e2291c017397ceff60511c29fe70d229bc8b (patch)
treed340b7776f945462f5ecffc830ada4d5fbe82f51 /include/swaynag/types.h
parentEnable wlr-gamma-control-unstable-v1 (diff)
parentMerge pull request #2411 from emersion/fullscreen-pointer-input (diff)
downloadsway-3a54e2291c017397ceff60511c29fe70d229bc8b.tar.gz
sway-3a54e2291c017397ceff60511c29fe70d229bc8b.tar.zst
sway-3a54e2291c017397ceff60511c29fe70d229bc8b.zip
Merge branch 'master' into wlr-gamma-control
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