diff options
author | Bert Münnich <be.muennich@gmail.com> | 2013-03-19 20:40:11 +0100 |
---|---|---|
committer | Bert Münnich <be.muennich@gmail.com> | 2013-03-19 21:14:58 +0100 |
commit | 447bc1c784cc358078f4ffbbac0c63ee74a069c8 (patch) | |
tree | f34cb8ef2ed52903d3f8be5bc902565b2ce2f29e /window.h | |
parent | 9ee34477f81dc9630e902e8059e56fa665ad007b (diff) | |
parent | 825c52c33fcaec5dbaa361cb39835987de8312f2 (diff) |
Merge branch 'asyncinfo'
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -24,6 +24,11 @@ #include "types.h" +enum { + BAR_L_LEN = 512, + BAR_R_LEN = 64 +}; + typedef struct { Display *dpy; int scr; @@ -55,8 +60,8 @@ typedef struct { struct { unsigned int h; - char *l; - char *r; + char l[BAR_L_LEN]; + char r[BAR_R_LEN]; unsigned long bgcol; unsigned long fgcol; } bar; @@ -80,10 +85,11 @@ void win_draw(win_t*); void win_draw_rect(win_t*, Pixmap, int, int, int, int, bool, int, unsigned long); +void win_update_bar(win_t*); + int win_textwidth(const char*, unsigned int, bool); void win_set_title(win_t*, const char*); -void win_set_bar_info(win_t*, char*, char*); void win_set_cursor(win_t*, cursor_t); #endif /* WINDOW_H */ |