aboutsummaryrefslogtreecommitdiffstats
path: root/dzen.h
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-14 11:04:40 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-14 11:04:40 +0000
commitbdf54d91e050b68f8b72b74c3494ce6b3326a37b (patch)
treedd6b8960366dce390cfac320cb56950c9e94e234 /dzen.h
parent8518b4c31a12a81006f51f549cfb681a18727f0b (diff)
downloaddzen-bdf54d91e050b68f8b72b74c3494ce6b3326a37b.tar.gz
dzen-bdf54d91e050b68f8b72b74c3494ce6b3326a37b.zip
added dynamic color support
git-svn-id: http://dzen.googlecode.com/svn/trunk@95 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'dzen.h')
-rw-r--r--dzen.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/dzen.h b/dzen.h
index be82e44..654cdb6 100644
--- a/dzen.h
+++ b/dzen.h
@@ -28,6 +28,7 @@ typedef struct DZEN Dzen;
typedef struct Fnt Fnt;
typedef struct TW TWIN;
typedef struct SW SWIN;
+typedef struct _Sline Sline;
struct Fnt {
XFontStruct *xfont;
@@ -37,6 +38,12 @@ struct Fnt {
int height;
};
+struct _Sline {
+ unsigned long fg;
+ unsigned long bg;
+ char * text;
+};
+
/* title window */
struct TW {
int x, y, width, height;
@@ -56,9 +63,12 @@ struct SW {
Drawable *drawable;
/* input buffer */
- char **tbuf;
+ //char **tbuf;
+ Sline *tbuf;
int tsize;
int tcnt;
+ /* line fg colors */
+ unsigned long *tcol;
int max_lines;
int first_line_vis;