diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-22 18:17:07 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-22 18:17:07 +0100 |
| commit | 8d111632f51a23e6991306cc006dc936d362ab9e (patch) | |
| tree | 78443fd6be05e44c2088f61fa9478e7521e7ef41 /dwm.h | |
| parent | made Fnt an anonymous inner struct (diff) | |
| download | dwm-8d111632f51a23e6991306cc006dc936d362ab9e.tar.gz dwm-8d111632f51a23e6991306cc006dc936d362ab9e.zip | |
made Fnt an anonymous inner struct
Diffstat (limited to 'dwm.h')
| -rw-r--r-- | dwm.h | 30 |
1 files changed, 15 insertions, 15 deletions
| @@ -41,21 +41,6 @@ enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ | |||
| 41 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ | 41 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
| 42 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ | 42 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
| 43 | 43 | ||
| 44 | typedef struct { | ||
| 45 | int x, y, w, h; | ||
| 46 | unsigned long norm[ColLast]; | ||
| 47 | unsigned long sel[ColLast]; | ||
| 48 | Drawable drawable; | ||
| 49 | GC gc; | ||
| 50 | struct Fnt { | ||
| 51 | int ascent; | ||
| 52 | int descent; | ||
| 53 | int height; | ||
| 54 | XFontSet set; | ||
| 55 | XFontStruct *xfont; | ||
| 56 | } font; | ||
| 57 | } DC; /* draw context */ | ||
| 58 | |||
| 59 | typedef struct Client Client; | 44 | typedef struct Client Client; |
| 60 | struct Client { | 45 | struct Client { |
| 61 | char name[256]; | 46 | char name[256]; |
| @@ -74,6 +59,21 @@ struct Client { | |||
| 74 | }; | 59 | }; |
| 75 | 60 | ||
| 76 | typedef struct { | 61 | typedef struct { |
| 62 | int x, y, w, h; | ||
| 63 | unsigned long norm[ColLast]; | ||
| 64 | unsigned long sel[ColLast]; | ||
| 65 | Drawable drawable; | ||
| 66 | GC gc; | ||
| 67 | struct { | ||
| 68 | int ascent; | ||
| 69 | int descent; | ||
| 70 | int height; | ||
| 71 | XFontSet set; | ||
| 72 | XFontStruct *xfont; | ||
| 73 | } font; | ||
| 74 | } DC; /* draw context */ | ||
| 75 | |||
| 76 | typedef struct { | ||
| 77 | const char *symbol; | 77 | const char *symbol; |
| 78 | void (*arrange)(void); | 78 | void (*arrange)(void); |
| 79 | } Layout; | 79 | } Layout; |
