aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaybar/tray/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/swaybar/tray/item.h')
-rw-r--r--include/swaybar/tray/item.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/swaybar/tray/item.h b/include/swaybar/tray/item.h
new file mode 100644
index 00000000..57affb78
--- /dev/null
+++ b/include/swaybar/tray/item.h
@@ -0,0 +1,38 @@
1#ifndef _SWAYBAR_TRAY_ITEM_H
2#define _SWAYBAR_TRAY_ITEM_H
3
4#include <stdbool.h>
5#include "swaybar/tray/tray.h"
6#include "list.h"
7
8struct swaybar_pixmap {
9 int size;
10 unsigned char pixels[];
11};
12
13struct swaybar_sni {
14 // icon properties
15 struct swaybar_tray *tray;
16 cairo_surface_t *icon;
17 int min_size;
18 int max_size;
19
20 // dbus properties
21 char *watcher_id;
22 char *service;
23 char *path;
24 char *interface;
25
26 char *status;
27 char *icon_name;
28 list_t *icon_pixmap; // struct swaybar_pixmap *
29 char *attention_icon_name;
30 list_t *attention_icon_pixmap; // struct swaybar_pixmap *
31 bool item_is_menu;
32 char *menu;
33};
34
35struct swaybar_sni *create_sni(char *id, struct swaybar_tray *tray);
36void destroy_sni(struct swaybar_sni *sni);
37
38#endif