diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-14 11:04:40 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-14 11:04:40 +0000 |
commit | bdf54d91e050b68f8b72b74c3494ce6b3326a37b (patch) | |
tree | dd6b8960366dce390cfac320cb56950c9e94e234 /dzen.h | |
parent | 8518b4c31a12a81006f51f549cfb681a18727f0b (diff) | |
download | dzen-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.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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; |