]> Dogcows Code - chaz/tint2/blob - src/systray/systraybar.h
start on issue 141 (systray space)
[chaz/tint2] / src / systray / systraybar.h
1 /**************************************************************************
2 * Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
3 *
4 * systraybar
5 * systray implementation come from 'docker-1.5' by Ben Jansens,
6 * and from systray/xembed specification (freedesktop.org).
7 *
8 **************************************************************************/
9
10 #ifndef SYSTRAYBAR_H
11 #define SYSTRAYBAR_H
12
13 #include "common.h"
14 #include "area.h"
15
16 // XEMBED messages
17 #define XEMBED_EMBEDDED_NOTIFY 0
18 // Flags for _XEMBED_INFO
19 #define XEMBED_MAPPED (1 << 0)
20
21
22 typedef struct {
23 // always start with area
24 Area area;
25
26 GSList *list_icons;
27 int sort;
28 } Systraybar;
29
30
31 typedef struct
32 {
33 Window id;
34 int x, y;
35 int width, height;
36 // TODO: manage icon's show/hide
37 int hide;
38 } TrayWindow;
39
40
41 extern Window net_sel_win;
42 extern Systraybar systray;
43 extern int refresh_systray;
44
45
46 void init_systray();
47 void cleanup_systray();
48 void draw_systray(void *obj, cairo_t *c, int active);
49 void resize_systray(void *obj);
50
51
52 // systray protocol
53 // many tray icon doesn't manage stop/restart of the systray manager
54 int init_net();
55 void cleanup_net();
56 void net_message(XClientMessageEvent *e);
57
58 gboolean add_icon(Window id);
59 void remove_icon(TrayWindow *traywin);
60
61 void refresh_systray_icon();
62
63 void kde_update_icons();
64
65 #endif
66
This page took 0.04049 seconds and 5 git commands to generate.