mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
swaybar: implement tray rendering
This commit is contained in:
parent
6b03c68775
commit
fa2c5282c1
3 changed files with 115 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue