diff options
author | Simon Howard | 2006-05-25 21:26:13 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-25 21:26:13 +0000 |
commit | 76e770217095fa7b42e62ddbd4e09e369d43bec1 (patch) | |
tree | f918638a2bd79fcd148f300fb6fee55632d1991b /textscreen/txt_label.h | |
parent | 2808929cf61f5c2043e3c5cca356d7d26ceeeb28 (diff) | |
download | chocolate-doom-76e770217095fa7b42e62ddbd4e09e369d43bec1.tar.gz chocolate-doom-76e770217095fa7b42e62ddbd4e09e369d43bec1.tar.bz2 chocolate-doom-76e770217095fa7b42e62ddbd4e09e369d43bec1.zip |
Allow the fg/bg colors to be set on labels.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 529
Diffstat (limited to 'textscreen/txt_label.h')
-rw-r--r-- | textscreen/txt_label.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/textscreen/txt_label.h b/textscreen/txt_label.h index 26471634..5c421ffc 100644 --- a/textscreen/txt_label.h +++ b/textscreen/txt_label.h @@ -27,6 +27,7 @@ typedef struct txt_label_s txt_label_t; +#include "txt_main.h" #include "txt_widget.h" struct txt_label_s @@ -35,10 +36,14 @@ struct txt_label_s char *label; char **lines; int w, h; + txt_color_t fgcolor; + txt_color_t bgcolor; }; txt_label_t *TXT_NewLabel(char *label); void TXT_SetLabel(txt_label_t *label, char *value); +void TXT_SetBGColor(txt_label_t *label, txt_color_t color); +void TXT_SetFGColor(txt_label_t *label, txt_color_t color); #endif /* #ifndef TXT_LABEL_H */ |