dwm.h
changeset 776 be103ae46dbc
parent 775 920b51271fc8
child 777 469dc170f833
equal deleted inserted replaced
775:920b51271fc8 776:be103ae46dbc
    97 extern DC dc;					/* global draw context */
    97 extern DC dc;					/* global draw context */
    98 extern Display *dpy;
    98 extern Display *dpy;
    99 extern Window root, barwin;
    99 extern Window root, barwin;
   100 
   100 
   101 /* client.c */
   101 /* client.c */
   102 extern void attach(Client *c);			/* attaches c to global client list */
       
   103 extern void attachstack(Client *c);		/* attaches client to stack */
       
   104 extern void configure(Client *c);		/* send synthetic configure event */
   102 extern void configure(Client *c);		/* send synthetic configure event */
   105 extern void detach(Client *c);			/* detaches c from global client list */
       
   106 extern void detachstack(Client *c);		/* detaches client from stack */
       
   107 extern void focus(Client *c);			/* focus c, c may be NULL */
   103 extern void focus(Client *c);			/* focus c, c may be NULL */
   108 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  */
   109 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 */
   110 extern Client *getclient(Window w);		/* return client of w */
   106 extern Client *getclient(Window w);		/* return client of w */
   111 extern void killclient(Arg *arg);		/* kill c nicely */
   107 extern void killclient(Arg *arg);		/* kill c nicely */
   112 extern void manage(Window w, XWindowAttributes *wa);	/* manage new client */
   108 extern void manage(Window w, XWindowAttributes *wa);	/* manage new client */
       
   109 Client *nexttiled(Client *c);			/* returns tiled successor of c */
   113 extern void resize(Client *c, int x, int y,
   110 extern void resize(Client *c, int x, int y,
   114 		int w, int h, Bool sizehints);	/* resize c*/
   111 		int w, int h, Bool sizehints);	/* resize c*/
   115 extern void updatesizehints(Client *c);		/* update the size hint variables of c */
   112 extern void updatesizehints(Client *c);		/* update the size hint variables of c */
   116 extern void updatetitle(Client *c);		/* update the name of c */
   113 extern void updatetitle(Client *c);		/* update the name of c */
   117 extern void unmanage(Client *c);		/* destroy c */
   114 extern void unmanage(Client *c);		/* destroy c */
       
   115 extern void zoom(Arg *arg);			/* zooms the focused client to master area, arg is ignored */
   118 
   116 
   119 /* draw.c */
   117 /* draw.c */
   120 extern void drawstatus(void);			/* draw the bar */
   118 extern void drawstatus(void);			/* draw the bar */
   121 extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
   119 extern unsigned long getcolor(const char *colstr);	/* return color of colstr */
   122 extern void setfont(const char *fontstr);	/* set the font for DC */
   120 extern void setfont(const char *fontstr);	/* set the font for DC */
   129 /* main.c */
   127 /* main.c */
   130 extern void quit(Arg *arg);			/* quit dwm nicely */
   128 extern void quit(Arg *arg);			/* quit dwm nicely */
   131 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   129 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   132 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   130 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   133 
   131 
   134 /* manage.c */
   132 /* screen.c */
   135 extern void compileregexps(void);		/* initialize regexps of rules defined in config.h */
   133 extern void compileregexps(void);		/* initialize regexps of rules defined in config.h */
   136 extern void dofloat(void);			/* arranges all windows floating */
   134 extern void dofloat(void);			/* arranges all windows floating */
   137 extern void dotile(void);			/* arranges all windows tiled */
   135 extern void dotile(void);			/* arranges all windows tiled */
   138 extern void incnmaster(Arg *arg);		/* increments nmaster with arg's index value */
   136 extern void incnmaster(Arg *arg);		/* increments nmaster with arg's index value */
   139 extern Bool isvisible(Client *c);		/* returns True if client is visible */
   137 extern Bool isvisible(Client *c);		/* returns True if client is visible */
   144 extern void togglefloat(Arg *arg);		/* toggles focusesd client between floating/non-floating state */
   142 extern void togglefloat(Arg *arg);		/* toggles focusesd client between floating/non-floating state */
   145 extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
   143 extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
   146 extern void toggletag(Arg *arg);		/* toggles c tags with arg's index */
   144 extern void toggletag(Arg *arg);		/* toggles c tags with arg's index */
   147 extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
   145 extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
   148 extern void view(Arg *arg);			/* views the tag with arg's index */
   146 extern void view(Arg *arg);			/* views the tag with arg's index */
   149 extern void zoom(Arg *arg);			/* zooms the focused client to master area, arg is ignored */
       
   150 
   147 
   151 /* util.c */
   148 /* util.c */
   152 extern void *emallocz(unsigned int size);	/* allocates zero-initialized memory, exits on error */
   149 extern void *emallocz(unsigned int size);	/* allocates zero-initialized memory, exits on error */
   153 extern void eprint(const char *errstr, ...);	/* prints errstr and exits with 1 */
   150 extern void eprint(const char *errstr, ...);	/* prints errstr and exits with 1 */
   154 extern void spawn(Arg *arg);			/* forks a new subprocess with to arg's cmd */
   151 extern void spawn(Arg *arg);			/* forks a new subprocess with to arg's cmd */
       
   152