comparison wm.h @ 34:cd30cce52b78

added logo+description
author Anselm R. Garbe <garbeam@wmii.de>
date Thu, 13 Jul 2006 09:32:22 +0200
parents e90449e03167
children 040a7074d23c
comparison
equal deleted inserted replaced
33:e90449e03167 34:cd30cce52b78
17 /* tags */ 17 /* tags */
18 enum { Tscratch, Tdev, Tirc, Twww, Twork, TLast }; 18 enum { Tscratch, Tdev, Tirc, Twww, Twork, TLast };
19 19
20 /********** CUSTOMIZE **********/ 20 /********** CUSTOMIZE **********/
21 21
22 typedef struct Brush Brush; 22 typedef struct DC DC;
23 typedef struct Client Client; 23 typedef struct Client Client;
24 typedef struct Fnt Fnt; 24 typedef struct Fnt Fnt;
25 typedef struct Key Key; 25 typedef struct Key Key;
26 26
27 /* atoms */ 27 /* atoms */
37 int ascent; 37 int ascent;
38 int descent; 38 int descent;
39 int height; 39 int height;
40 }; 40 };
41 41
42 struct Brush { 42 struct DC { /* draw context */
43 GC gc; 43 GC gc;
44 Drawable drawable; 44 Drawable drawable;
45 int x, y, w, h; 45 int x, y, w, h;
46 Fnt font; 46 Fnt font;
47 unsigned long bg; 47 unsigned long bg;
77 extern Window root; 77 extern Window root;
78 extern Atom wm_atom[WMLast], net_atom[NetLast]; 78 extern Atom wm_atom[WMLast], net_atom[NetLast];
79 extern Cursor cursor[CurLast]; 79 extern Cursor cursor[CurLast];
80 extern Bool running, issel; 80 extern Bool running, issel;
81 extern void (*handler[LASTEvent]) (XEvent *); 81 extern void (*handler[LASTEvent]) (XEvent *);
82 extern void (*arrange)(void *aux);
83 82
84 extern int tsel, screen, sx, sy, sw, sh, th; 83 extern int tsel, screen, sx, sy, sw, sh, th;
85 extern char stext[1024], *tags[TLast]; 84 extern char stext[1024], *tags[TLast];
86 85
87 extern Brush brush; 86 extern DC dc;
88 extern Client *clients, *stack; 87 extern Client *clients, *stack;
89 88
90 /* client.c */ 89 /* client.c */
91 extern void manage(Window w, XWindowAttributes *wa); 90 extern void manage(Window w, XWindowAttributes *wa);
92 extern void unmanage(Client *c); 91 extern void unmanage(Client *c);
100 extern void craise(Client *c); 99 extern void craise(Client *c);
101 extern void lower(Client *c); 100 extern void lower(Client *c);
102 extern void ckill(void *aux); 101 extern void ckill(void *aux);
103 extern void sel(void *aux); 102 extern void sel(void *aux);
104 extern void max(void *aux); 103 extern void max(void *aux);
105 extern void floating(void *aux); 104 extern void toggle(void *aux);
106 extern void grid(void *aux);
107 extern void gravitate(Client *c, Bool invert); 105 extern void gravitate(Client *c, Bool invert);
108 106
109 /* draw.c */ 107 /* draw.c */
110 extern void draw(Brush *b, Bool border, const char *text); 108 extern void draw(Bool border, const char *text);
111 extern void loadcolors(int scr, Brush *b, 109 extern void initcolors(const char *bg, const char *fg, const char *bo);
112 const char *bg, const char *fg, const char *bo); 110 extern void initfont(Fnt *font, const char *fontstr);
113 extern void loadfont(Fnt *font, const char *fontstr);
114 extern unsigned int textnw(Fnt *font, char *text, unsigned int len); 111 extern unsigned int textnw(Fnt *font, char *text, unsigned int len);
115 extern unsigned int textw(Fnt *font, char *text); 112 extern unsigned int textw(Fnt *font, char *text);
116 extern unsigned int texth(Fnt *font); 113 extern unsigned int texth(Fnt *font);
117 114
118 /* event.c */ 115 /* event.c */