diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-05-11 14:09:40 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-05-11 14:09:40 +0000 |
commit | e93f7497251ad1af2b65ae519c68e93fd9af79cb (patch) | |
tree | 81aa5796b4c7f879a1b7661f5f7c467253b732e0 /dzen.h | |
parent | b8edb7ec2f7bd7abb216f8c7173630c1ce7e4574 (diff) | |
download | dzen-e93f7497251ad1af2b65ae519c68e93fd9af79cb.tar.gz dzen-e93f7497251ad1af2b65ae519c68e93fd9af79cb.zip |
new option: -ta title window content alignement (l|c|r)
git-svn-id: http://dzen.googlecode.com/svn/trunk@20 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'dzen.h')
-rw-r--r-- | dzen.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -12,8 +12,11 @@ #define BGCOLOR "#ab0b0b" #define FGCOLOR "#efefef" -//#define BUF_SIZE 4096 -#define BUF_SIZE 1024 +#define ALIGNECENTER 0 +#define ALIGNELEFT 1 +#define ALIGNERIGHT 2 + +#define BUF_SIZE 4096 /* gui data structures */ enum { ColFG, ColBG, ColLast }; @@ -41,6 +44,7 @@ struct TW { Window win; Drawable drawable; + char alignement; Bool autohide; Bool ishidden; }; @@ -112,7 +116,8 @@ void x_draw_body(void); /* draw.c */ extern void drawtext(const char *text, int reverse, - int line); + int line, + int aligne); extern unsigned long getcolor(const char *colstr); /* returns color of colstr */ extern void setfont(const char *fontstr); /* sets global font */ extern unsigned int textw(const char *text); /* returns width of text in px */ |