aboutsummaryrefslogtreecommitdiffstats
path: root/dzen.h
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-11 14:09:40 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-11 14:09:40 +0000
commite93f7497251ad1af2b65ae519c68e93fd9af79cb (patch)
tree81aa5796b4c7f879a1b7661f5f7c467253b732e0 /dzen.h
parentb8edb7ec2f7bd7abb216f8c7173630c1ce7e4574 (diff)
downloaddzen-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.h11
1 files changed, 8 insertions, 3 deletions
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 */