diff options
Diffstat (limited to 'dwm.h')
| -rw-r--r-- | dwm.h | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -88,6 +88,13 @@ extern DC dc; /* global draw context */ | |||
| 88 | extern Display *dpy; | 88 | extern Display *dpy; |
| 89 | extern Window root, barwin; | 89 | extern Window root, barwin; |
| 90 | 90 | ||
| 91 | /* bar.c */ | ||
| 92 | void drawbar(void); /* draw the bar */ | ||
| 93 | void initbar(void); /* initializes the bar */ | ||
| 94 | unsigned int textw(const char *text); /* return the width of text in px*/ | ||
| 95 | void togglebar(const char *arg); /* shows/hides the bar */ | ||
| 96 | void updatebarpos(void); /* updates the bar position */ | ||
| 97 | |||
| 91 | /* client.c */ | 98 | /* client.c */ |
| 92 | void attach(Client *c); /* attaches c to global client list */ | 99 | void attach(Client *c); /* attaches c to global client list */ |
| 93 | void ban(Client *c); /* bans c */ | 100 | void ban(Client *c); /* bans c */ |
| @@ -103,11 +110,6 @@ void unmanage(Client *c); /* unmanage c */ | |||
| 103 | void updatesizehints(Client *c); /* update the size hint variables of c */ | 110 | void updatesizehints(Client *c); /* update the size hint variables of c */ |
| 104 | void updatetitle(Client *c); /* update the name of c */ | 111 | void updatetitle(Client *c); /* update the name of c */ |
| 105 | 112 | ||
| 106 | /* draw.c */ | ||
| 107 | void drawbar(void); /* draw the bar */ | ||
| 108 | void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ | ||
| 109 | unsigned int textw(const char *text); /* return the width of text in px*/ | ||
| 110 | |||
| 111 | /* event.c */ | 113 | /* event.c */ |
| 112 | void grabkeys(void); /* grab all keys defined in config.h */ | 114 | void grabkeys(void); /* grab all keys defined in config.h */ |
| 113 | 115 | ||
| @@ -132,12 +134,10 @@ Client *nexttiled(Client *c); /* returns tiled successor of c */ | |||
| 132 | void restack(void); /* restores z layers of all clients */ | 134 | void restack(void); /* restores z layers of all clients */ |
| 133 | void setlayout(const char *arg); /* sets layout, NULL means next layout */ | 135 | void setlayout(const char *arg); /* sets layout, NULL means next layout */ |
| 134 | void tag(const char *arg); /* tags sel with arg's index */ | 136 | void tag(const char *arg); /* tags sel with arg's index */ |
| 135 | void togglebar(const char *arg); /* shows/hides the bar */ | ||
| 136 | void togglefloating(const char *arg); /* toggles sel between floating/tiled state */ | 137 | void togglefloating(const char *arg); /* toggles sel between floating/tiled state */ |
| 137 | void togglemax(const char *arg); /* toggles maximization of floating client */ | 138 | void togglemax(const char *arg); /* toggles maximization of floating client */ |
| 138 | void toggletag(const char *arg); /* toggles sel tags with arg's index */ | 139 | void toggletag(const char *arg); /* toggles sel tags with arg's index */ |
| 139 | void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ | 140 | void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ |
| 140 | void updatebarpos(void); /* updates the bar position */ | ||
| 141 | void view(const char *arg); /* views the tag with arg's index */ | 141 | void view(const char *arg); /* views the tag with arg's index */ |
| 142 | 142 | ||
| 143 | /* util.c */ | 143 | /* util.c */ |
