dwm.h
changeset 777 469dc170f833
parent 776 be103ae46dbc
child 778 2ec66bdbb8ad
equal deleted inserted replaced
776:be103ae46dbc 777:469dc170f833
   101 /* client.c */
   101 /* client.c */
   102 extern void configure(Client *c);		/* send synthetic configure event */
   102 extern void configure(Client *c);		/* send synthetic configure event */
   103 extern void focus(Client *c);			/* focus c, c may be NULL */
   103 extern void focus(Client *c);			/* focus c, c may be NULL */
   104 extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
   104 extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
   105 extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
   105 extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
   106 extern Client *getclient(Window w);		/* return client of w */
       
   107 extern void killclient(Arg *arg);		/* kill c nicely */
   106 extern void killclient(Arg *arg);		/* kill c nicely */
   108 extern void manage(Window w, XWindowAttributes *wa);	/* manage new client */
   107 extern void manage(Window w, XWindowAttributes *wa);	/* manage new client */
   109 Client *nexttiled(Client *c);			/* returns tiled successor of c */
   108 Client *nexttiled(Client *c);			/* returns tiled successor of c */
   110 extern void resize(Client *c, int x, int y,
   109 extern void resize(Client *c, int x, int y,
   111 		int w, int h, Bool sizehints);	/* resize c*/
   110 		int w, int h, Bool sizehints);	/* resize with given coordinates c*/
   112 extern void updatesizehints(Client *c);		/* update the size hint variables of c */
   111 extern void updatesizehints(Client *c);		/* update the size hint variables of c */
   113 extern void updatetitle(Client *c);		/* update the name of c */
   112 extern void updatetitle(Client *c);		/* update the name of c */
   114 extern void unmanage(Client *c);		/* destroy c */
   113 extern void unmanage(Client *c);		/* destroy c */
   115 extern void zoom(Arg *arg);			/* zooms the focused client to master area, arg is ignored */
   114 extern void zoom(Arg *arg);			/* zooms the focused client to master area, arg is ignored */
   116 
       
   117 /* draw.c */
       
   118 extern void drawstatus(void);			/* draw the bar */
       
   119 extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
       
   120 extern void setfont(const char *fontstr);	/* set the font for DC */
       
   121 extern unsigned int textw(const char *text);	/* return the width of text in px*/
       
   122 
   115 
   123 /* event.c */
   116 /* event.c */
   124 extern void grabkeys(void);			/* grab all keys defined in config.h */
   117 extern void grabkeys(void);			/* grab all keys defined in config.h */
   125 extern void procevent(void);			/* process pending X events */
   118 extern void procevent(void);			/* process pending X events */
   126 
   119 
   127 /* main.c */
   120 /* main.c */
       
   121 extern void drawstatus(void);			/* draw the bar */
       
   122 extern unsigned int textw(const char *text);	/* return the width of text in px*/
   128 extern void quit(Arg *arg);			/* quit dwm nicely */
   123 extern void quit(Arg *arg);			/* quit dwm nicely */
   129 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   124 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   130 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   125 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   131 
   126 
   132 /* screen.c */
   127 /* screen.c */