86 extern Cursor cursor[CurLast]; |
86 extern Cursor cursor[CurLast]; |
87 extern DC dc; /* global draw context */ |
87 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 */ |
94 void configure(Client *c); /* send synthetic configure event */ |
101 void configure(Client *c); /* send synthetic configure event */ |
95 void detach(Client *c); /* detaches c from global client list */ |
102 void detach(Client *c); /* detaches c from global client list */ |
100 int w, int h, Bool sizehints); /* resize with given coordinates c*/ |
107 int w, int h, Bool sizehints); /* resize with given coordinates c*/ |
101 void unban(Client *c); /* unbans c */ |
108 void unban(Client *c); /* unbans c */ |
102 void unmanage(Client *c); /* unmanage c */ |
109 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 |
|
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 |
112 |
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 |
114 /* main.c */ |
116 /* main.c */ |
130 Bool isvisible(Client *c); /* returns True if client is visible */ |
132 Bool isvisible(Client *c); /* returns True if client is visible */ |
131 Client *nexttiled(Client *c); /* returns tiled successor of c */ |
133 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 */ |
144 void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
144 void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
145 void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
145 void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |