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

Functions

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

Variables

txt_widget_class_t txt_label_class

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.

Variable Documentation

Initial value:
{
    TXT_LabelSizeCalc,
    TXT_LabelDrawer,
    NULL,
    TXT_LabelDestructor,
    NULL,
    NULL,
}
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends