aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2018-12-07 12:37:33 +0000
committerIan Fan <ianfan0@gmail.com>2018-12-31 20:40:18 +0000
commitfa2c5282c1d09eced82a9c15a4ee26e7b00a37c4 (patch)
treeec9e36055d21478466d663e2dc1796658ab273ca /include/swaybar
parent6b03c68775c9c638def342c82b1fa3beffa52645 (diff)
swaybar: implement tray rendering
Diffstat (limited to 'include/swaybar')
-rw-r--r--include/swaybar/tray/item.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/swaybar/tray/item.h b/include/swaybar/tray/item.h
index 57affb78..53d7e48c 100644
--- a/include/swaybar/tray/item.h
+++ b/include/swaybar/tray/item.h
@@ -1,10 +1,14 @@
#ifndef _SWAYBAR_TRAY_ITEM_H
#define _SWAYBAR_TRAY_ITEM_H
+#include <cairo.h>
#include <stdbool.h>
+#include <stdint.h>
#include "swaybar/tray/tray.h"
#include "list.h"
+struct swaybar_output;
+
struct swaybar_pixmap {
int size;
unsigned char pixels[];
@@ -34,5 +38,7 @@ struct swaybar_sni {
struct swaybar_sni *create_sni(char *id, struct swaybar_tray *tray);
void destroy_sni(struct swaybar_sni *sni);
+uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x,
+ struct swaybar_sni *sni);
#endif