dwm.h
changeset 835 93ecc09cd1ad
parent 834 1a60e0995e77
child 837 123231b9eb87
equal deleted inserted replaced
834:1a60e0995e77 835:93ecc09cd1ad
    39 enum { NetSupported, NetWMName, NetLast };		/* EWMH atoms */
    39 enum { NetSupported, NetWMName, NetLast };		/* EWMH atoms */
    40 enum { WMProtocols, WMDelete, WMState, WMLast };	/* default atoms */
    40 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];
    62 	int x, y, w, h;
    47 	int x, y, w, h;
    63 	int rx, ry, rw, rh; /* revert geometry */
    48 	int rx, ry, rw, rh; /* revert geometry */
    70 	Client *next;
    55 	Client *next;
    71 	Client *prev;
    56 	Client *prev;
    72 	Client *snext;
    57 	Client *snext;
    73 	Window win;
    58 	Window win;
    74 };
    59 };
       
    60 
       
    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 
    75 
    76 typedef struct {
    76 typedef struct {
    77 	const char *symbol;
    77 	const char *symbol;
    78 	void (*arrange)(void);
    78 	void (*arrange)(void);
    79 } Layout;
    79 } Layout;