From bdf54d91e050b68f8b72b74c3494ce6b3326a37b Mon Sep 17 00:00:00 2001 From: gotmor Date: Thu, 14 Jun 2007 11:04:40 +0000 Subject: added dynamic color support git-svn-id: http://dzen.googlecode.com/svn/trunk@95 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- dzen.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'dzen.h') 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; -- cgit v1.2.3-54-g00ecf