comparison dwm.h @ 353:8a06efe5b563

new color stuff/new rendering stuff
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 25 Aug 2006 12:59:45 +0200
parents 5a8bdc3b37cb
children ba6c55e1b9b2
comparison
equal deleted inserted replaced
352:5a8bdc3b37cb 353:8a06efe5b563
21 enum { WMProtocols, WMDelete, WMLast }; 21 enum { WMProtocols, WMDelete, WMLast };
22 22
23 /* cursor */ 23 /* cursor */
24 enum { CurNormal, CurResize, CurMove, CurLast }; 24 enum { CurNormal, CurResize, CurMove, CurLast };
25 25
26 /* color */
27 enum { ColFG, ColBG, ColLast };
28
26 /* window corners */ 29 /* window corners */
27 typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner; 30 typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner;
28 31
29 typedef struct { 32 typedef struct {
30 int ascent; 33 int ascent;
34 XFontStruct *xfont; 37 XFontStruct *xfont;
35 } Fnt; 38 } Fnt;
36 39
37 typedef struct { /* draw context */ 40 typedef struct { /* draw context */
38 int x, y, w, h; 41 int x, y, w, h;
39 unsigned long bg; 42 unsigned long norm[ColLast];
40 unsigned long fg; 43 unsigned long sel[ColLast];
41 unsigned long border; 44 unsigned long status[ColLast];
42 Drawable drawable; 45 Drawable drawable;
43 Fnt font; 46 Fnt font;
44 GC gc; 47 GC gc;
45 } DC; 48 } DC;
46 49
64 }; 67 };
65 68
66 extern const char *tags[]; 69 extern const char *tags[];
67 extern char stext[1024]; 70 extern char stext[1024];
68 extern int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; 71 extern int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
69 extern unsigned int ntags, numlockmask; 72 extern unsigned int ntags, numlockmask, modew;
70 extern void (*handler[LASTEvent])(XEvent *); 73 extern void (*handler[LASTEvent])(XEvent *);
71 extern void (*arrange)(Arg *); 74 extern void (*arrange)(Arg *);
72 extern Atom wmatom[WMLast], netatom[NetLast]; 75 extern Atom wmatom[WMLast], netatom[NetLast];
73 extern Bool running, issel, *seltag; 76 extern Bool running, issel, *seltag;
74 extern Client *clients, *sel; 77 extern Client *clients, *sel;