summaryrefslogtreecommitdiffstats
path: root/include/swaybar/tray/tray.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-06-14 18:53:32 -0400
committerLibravatar GitHub <noreply@github.com>2017-06-14 18:53:32 -0400
commiteb6e38c86d2deb37cc6f378f8644c4a530fd7448 (patch)
treee3c567c4684faf0f9a7f77494f1bf638171d5349 /include/swaybar/tray/tray.h
parentMerge pull request #1236 from ykrivopalov/fix_complex_status_command (diff)
parentMerge branch 'master' into tray (diff)
downloadsway-eb6e38c86d2deb37cc6f378f8644c4a530fd7448.tar.gz
sway-eb6e38c86d2deb37cc6f378f8644c4a530fd7448.tar.zst
sway-eb6e38c86d2deb37cc6f378f8644c4a530fd7448.zip
Merge pull request #1234 from 4e554c4c/tray
Implement Tray Icons
Diffstat (limited to 'include/swaybar/tray/tray.h')
-rw-r--r--include/swaybar/tray/tray.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h
new file mode 100644
index 00000000..b718e555
--- /dev/null
+++ b/include/swaybar/tray/tray.h
@@ -0,0 +1,32 @@
1#ifndef _SWAYBAR_TRAY_H
2#define _SWAYBAR_TRAY_H
3
4#include <stdint.h>
5#include <stdbool.h>
6#include "swaybar/tray/dbus.h"
7#include "swaybar/tray/sni.h"
8#include "swaybar/bar.h"
9#include "list.h"
10
11extern struct tray *tray;
12
13struct tray {
14 list_t *items;
15};
16
17/**
18 * Processes a mouse event on the bar
19 */
20void tray_mouse_event(struct output *output, int x, int y,
21 uint32_t button, uint32_t state);
22
23uint32_t tray_render(struct output *output, struct config *config);
24
25void tray_upkeep(struct bar *bar);
26
27/**
28 * Initializes the tray with D-Bus
29 */
30void init_tray();
31
32#endif /* _SWAYBAR_TRAY_H */