From e93f7497251ad1af2b65ae519c68e93fd9af79cb Mon Sep 17 00:00:00 2001 From: gotmor Date: Fri, 11 May 2007 14:09:40 +0000 Subject: 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 --- dzen.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'dzen.h') diff --git a/dzen.h b/dzen.h index e9ea535..fc49cdc 100644 --- a/dzen.h +++ b/dzen.h @@ -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 */ -- cgit v1.2.3-54-g00ecf