]> Dogcows Code - chaz/tint2/blob - src/systray/systraybar.h
fixed background refresh on systray
[chaz/tint2] / src / systray / systraybar.h
1 /**************************************************************************
2 * Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
3 *
4 * systraybar
5 * based on 'docker-1.5' from Ben Jansens
6 *
7 **************************************************************************/
8
9 #ifndef SYSTRAYBAR_H
10 #define SYSTRAYBAR_H
11
12 #include "common.h"
13 #include "area.h"
14
15
16 typedef struct {
17 // always start with area
18 Area area;
19
20 GSList *list_icons;
21 } Systraybar;
22
23
24 typedef struct
25 {
26 Window id;
27 int x, y;
28 int width, height;
29
30 long *icon_data;
31 } TrayWindow;
32
33
34 extern Window net_sel_win;
35 extern Systraybar systray;
36
37
38 void init_systray();
39 void cleanup_systray();
40
41 int init_net();
42 void cleanup_net();
43 void net_message(XClientMessageEvent *e);
44
45 void remove_icon(TrayWindow *traywin);
46
47 void draw_systray(void *obj, cairo_t *c, int active);
48
49 void resize_systray(void *obj);
50
51 void refresh_systray();
52
53 #endif
54
This page took 0.043214 seconds and 5 git commands to generate.