dwm.h
changeset 487 be4f90c03582
parent 480 680aca428830
child 488 0d2559f46b9e
equal deleted inserted replaced
486:8d564b9e3cd4 487:be4f90c03582
   119 extern void updatesize(Client *c);			/* update the size structs of c */
   119 extern void updatesize(Client *c);			/* update the size structs of c */
   120 extern void updatetitle(Client *c);		/* update the name of c */
   120 extern void updatetitle(Client *c);		/* update the name of c */
   121 extern void unmanage(Client *c);		/* destroy c */
   121 extern void unmanage(Client *c);		/* destroy c */
   122 
   122 
   123 /* draw.c */
   123 /* draw.c */
   124 extern void drawall();				/* draw all visible client titles and the bar */
   124 extern void drawall(void);			/* draw all visible client titles and the bar */
   125 extern void drawstatus();			/* draw the bar */
   125 extern void drawstatus(void);			/* draw the bar */
   126 extern void drawtitle(Client *c);		/* draw title of c */
   126 extern void drawtitle(Client *c);		/* draw title of c */
   127 extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
   127 extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
   128 extern void setfont(const char *fontstr);	/* set the font for DC */
   128 extern void setfont(const char *fontstr);	/* set the font for DC */
   129 extern unsigned int textw(const char *text);	/* return the width of text in px*/
   129 extern unsigned int textw(const char *text);	/* return the width of text in px*/
   130 
   130 
   131 /* event.c */
   131 /* event.c */
   132 extern void grabkeys();				/* grab all keys defined in config.h */
   132 extern void grabkeys(void);			/* grab all keys defined in config.h */
   133 extern void procevent();			/* process pending X events */
   133 extern void procevent(void);			/* process pending X events */
   134 
   134 
   135 /* main.c */
   135 /* main.c */
   136 extern int getproto(Window w);			/* return protocol mask of WMProtocols property of w */
   136 extern int getproto(Window w);			/* return protocol mask of WMProtocols property of w */
   137 extern void quit(Arg *arg);			/* quit dwm nicely */
   137 extern void quit(Arg *arg);			/* quit dwm nicely */
   138 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   138 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   139 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   139 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   140 
   140 
   141 /* tag.c */
   141 /* tag.c */
   142 extern void initrregs();			/* initialize regexps of rules defined in config.h */
   142 extern void initrregs(void);			/* initialize regexps of rules defined in config.h */
   143 extern Client *getnext(Client *c);		/* returns next visible client */
   143 extern Client *getnext(Client *c);		/* returns next visible client */
   144 extern Client *getprev(Client *c);		/* returns previous visible client */
   144 extern Client *getprev(Client *c);		/* returns previous visible client */
   145 extern void settags(Client *c, Client *trans);	/* sets tags of c */
   145 extern void settags(Client *c, Client *trans);	/* sets tags of c */
   146 extern void tag(Arg *arg);			/* tags c with arg's index */
   146 extern void tag(Arg *arg);			/* tags c with arg's index */
   147 extern void toggletag(Arg *arg);		/* toggles c tags with arg's index */
   147 extern void toggletag(Arg *arg);		/* toggles c tags with arg's index */
   158 extern void dotile(Arg *arg);			/* arranges all windows, arg is ignored */
   158 extern void dotile(Arg *arg);			/* arranges all windows, arg is ignored */
   159 extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
   159 extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
   160 extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
   160 extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
   161 extern Bool isvisible(Client *c);		/* returns True if client is visible */
   161 extern Bool isvisible(Client *c);		/* returns True if client is visible */
   162 extern void resizecol(Arg *arg);		/* resizes the master width with arg's index value */
   162 extern void resizecol(Arg *arg);		/* resizes the master width with arg's index value */
   163 extern void restack();				/* restores z layers of all clients */
   163 extern void restack(void);			/* restores z layers of all clients */
   164 extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
   164 extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
   165 extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
   165 extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
   166 extern void view(Arg *arg);			/* views the tag with arg's index */
   166 extern void view(Arg *arg);			/* views the tag with arg's index */
   167 extern void viewall(Arg *arg);			/* views all tags, arg is ignored */
   167 extern void viewall(Arg *arg);			/* views all tags, arg is ignored */
   168 extern void zoom(Arg *arg);			/* zooms the focused client to master column, arg is ignored */
   168 extern void zoom(Arg *arg);			/* zooms the focused client to master column, arg is ignored */