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

Functions

txt_radiobutton_tTXT_NewRadioButton (char *label, int *variable, int value)
 Create a new radio button widget.
void TXT_SetRadioButtonLabel (txt_radiobutton_t *radiobutton, char *value)
 Set the label on a radio button.

Variables

txt_widget_class_t txt_radiobutton_class

Function Documentation

txt_radiobutton_t* TXT_NewRadioButton ( char *  label,
int *  variable,
int  value 
)

Create a new radio button widget.

Parameters:
labelThe label to display next to the radio button.
variablePointer to the variable tracking whether this radio button is selected.
valueIf the variable is equal to this value, the radio button appears selected.
Returns:
Pointer to the new radio button widget.
void TXT_SetRadioButtonLabel ( txt_radiobutton_t radiobutton,
char *  value 
)

Set the label on a radio button.

Parameters:
radiobuttonThe radio button.
valueThe new label.

Variable Documentation

Initial value:
{
    TXT_RadioButtonSizeCalc,
    TXT_RadioButtonDrawer,
    TXT_RadioButtonKeyPress,
    TXT_RadioButtonDestructor,
    TXT_RadioButtonMousePress,
    NULL,
}
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends