Odamex
Setting the Standard in Multiplayer Doom
textscreen/txt_label.h File Reference

Text label widget. More...

Go to the source code of this file.

Data Structures

struct  txt_label_s

Typedefs

typedef struct txt_label_s txt_label_t
 Label widget.

Functions

txt_label_tTXT_NewLabel (char *label)
 Create a new label widget.
void TXT_SetLabel (txt_label_t *label, char *value)
 Set the string displayed in a label widget.
void TXT_SetBGColor (txt_label_t *label, txt_color_t color)
 Set the background color of a label widget.
void TXT_SetFGColor (txt_label_t *label, txt_color_t color)
 Set the foreground color of a label widget.

Detailed Description

Text label widget.


Typedef Documentation

typedef struct txt_label_s txt_label_t

Label widget.

A label widget does nothing except show a text label.


Function Documentation

txt_label_t* TXT_NewLabel ( char *  label)

Create a new label widget.

Parameters:
labelString to display in the widget.
Returns:
Pointer to the new label widget.
void TXT_SetBGColor ( txt_label_t label,
txt_color_t  color 
)

Set the background color of a label widget.

Parameters:
labelThe widget.
colorThe background color to use.
void TXT_SetFGColor ( txt_label_t label,
txt_color_t  color 
)

Set the foreground color of a label widget.

Parameters:
labelThe widget.
colorThe foreground color to use.
void TXT_SetLabel ( txt_label_t label,
char *  value 
)

Set the string displayed in a label widget.

Parameters:
labelThe widget.
valueThe string to display.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends