summaryrefslogtreecommitdiff
path: root/textscreen/txt_label.h
diff options
context:
space:
mode:
authorSimon Howard2006-05-25 21:26:13 +0000
committerSimon Howard2006-05-25 21:26:13 +0000
commit76e770217095fa7b42e62ddbd4e09e369d43bec1 (patch)
treef918638a2bd79fcd148f300fb6fee55632d1991b /textscreen/txt_label.h
parent2808929cf61f5c2043e3c5cca356d7d26ceeeb28 (diff)
downloadchocolate-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.h5
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 */