summaryrefslogtreecommitdiff
path: root/include/swaynag/types.h
diff options
context:
space:
mode:
authoremersion <[email protected]>2018-08-02 23:49:25 +0100
committerGitHub <[email protected]>2018-08-02 23:49:25 +0100
commit3a54e2291c017397ceff60511c29fe70d229bc8b (patch)
treed340b7776f945462f5ecffc830ada4d5fbe82f51 /include/swaynag/types.h
parentc35a34262f8da368f65d37f811a2264647e0dae6 (diff)
parente07da5fc5c6ac5c186662b56b08ca71531119de0 (diff)
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 @@
+#ifndef _SWAYNAG_TYPES_H
+#define _SWAYNAG_TYPES_H
+
+struct swaynag_type {
+ char *name;
+
+ char *font;
+ char *output;
+ uint32_t anchors;
+
+ uint32_t button_background;
+ uint32_t background;
+ uint32_t text;
+ uint32_t border;
+ uint32_t border_bottom;
+
+ uint32_t bar_border_thickness;
+ uint32_t message_padding;
+ uint32_t details_border_thickness;
+ uint32_t button_border_thickness;
+ uint32_t button_gap;
+ uint32_t button_gap_close;
+ uint32_t button_margin_right;
+ uint32_t button_padding;
+};
+
+void swaynag_types_add_default(list_t *types);
+
+struct swaynag_type *swaynag_type_get(list_t *types, char *name);
+
+struct swaynag_type *swaynag_type_clone(struct swaynag_type *type);
+
+void swaynag_type_merge(struct swaynag_type *dest, struct swaynag_type *src);
+
+void swaynag_type_free(struct swaynag_type *type);
+
+void swaynag_types_free(list_t *types);
+
+#endif