From 98f342c73911d1ba4afcdcd36bd5b4fb9cade224 Mon Sep 17 00:00:00 2001 From: Nikita Langer Date: Sat, 22 Aug 2026 18:23:18 +0200 Subject: systray --- systray/icon.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 systray/icon.h (limited to 'systray/icon.h') diff --git a/systray/icon.h b/systray/icon.h new file mode 100644 index 0000000..20f281b --- /dev/null +++ b/systray/icon.h @@ -0,0 +1,26 @@ +#ifndef ICON_H +#define ICON_H + +#include +#include + +#include +#include + +typedef const struct fcft_glyph FallbackIcon; + +typedef struct { + pixman_image_t *img; + uint32_t *buf_pixman; + uint8_t *buf_orig; + size_t size_orig; + size_t size_pixman; +} Icon; + +Icon *createicon (const uint8_t *buf, int width, int height, int size); +FallbackIcon *createfallbackicon (const char *appname, int fgcolor, + struct fcft_font *font); +void destroyicon (Icon *icon); +int resize_image (pixman_image_t *orig, int new_width, int new_height); + +#endif /* ICON_H */ -- cgit