]> icculus.org git repositories - mikachu/rspanel.git/blob - rspanel.h
80 cols and remove some unused mwm defines
[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     Atom        atoms[XPROP_COUNT]; /* setup by xprop_init */
20     GC          fore_gc;            /* setup by gui_init */
21 }
22 screen;
23
24 typedef struct task
25 {
26         struct task *next;
27         Window win;
28         char *name;
29 //      char *locale;
30         int pos_x;
31         unsigned int width;
32         unsigned int nicons;
33         struct icon *icons;
34         unsigned int focused:1;
35         unsigned int iconified:1;
36         unsigned int shaded:1;
37         unsigned int hidden:1;
38         unsigned int icon_copied:1;
39 }
40 task;
41
42 typedef struct taskbar
43 {
44         Window win;
45         /* we draw stuff to this guy then set him as a window
46          * background pixmap, yay no flickering! */
47         Pixmap bg;
48         task *task_list;
49         int num_shown_tasks;
50         int my_desktop;
51         int x;
52         int y;
53         int w;
54         int h;
55         unsigned int hidden:1;
56         unsigned int at_top:1;
57 }
58 taskbar;
59
60 int task_shown(task *tk);
61
62 #endif