]> icculus.org git repositories - mikachu/rspanel.git/blob - rspanel.h
add theme to the rspanel struct. initialize some stuff to 0's
[mikachu/rspanel.git] / rspanel.h
1 #ifndef rs_rspanel_h
2 #define rs_rspanel_h
3
4 #include "xprop.h"
5
6 #include <X11/Xlib.h>
7 #include <openbox/render.h>
8
9 struct icon;
10
11 typedef struct screen
12 {
13     Display    *dd;
14     int         num;
15     int         width;
16     int         height;
17     Window      root;
18     RrInstance *rr;
19     RrTheme    *theme;              /* setup by gui_init */
20     Atom        atoms[XPROP_COUNT]; /* setup by xprop_init */
21     GC          fore_gc;            /* setup by gui_init */
22 }
23 screen;
24
25 typedef struct task
26 {
27         struct task *next;
28         Window win;
29         char *name;
30 //      char *locale;
31         int pos_x;
32         unsigned int width;
33         unsigned int nicons;
34         struct icon *icons;
35         unsigned int focused:1;
36         unsigned int iconified:1;
37         unsigned int shaded:1;
38         unsigned int hidden:1;
39         unsigned int icon_copied:1;
40 }
41 task;
42
43 typedef struct taskbar
44 {
45         Window win;
46         /* we draw stuff to this guy then set him as a window
47          * background pixmap, yay no flickering! */
48         Pixmap bg;
49         task *task_list;
50         int num_shown_tasks;
51         int my_desktop;
52         int x;
53         int y;
54         int w;
55         int h;
56         unsigned int hidden:1;
57         unsigned int at_top:1;
58 }
59 taskbar;
60
61 int task_shown(task *tk);
62
63 #endif