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

Functions

txt_checkbox_tTXT_NewCheckBox (char *label, int *variable)
 Create a new checkbox.
txt_checkbox_tTXT_NewInvertedCheckBox (char *label, int *variable)
 Create a new inverted checkbox.

Variables

txt_widget_class_t txt_checkbox_class

Function Documentation

txt_checkbox_t* TXT_NewCheckBox ( char *  label,
int *  variable 
)

Create a new checkbox.

Parameters:
labelThe label for the new checkbox.
variablePointer to the variable containing this checkbox's value.
Returns:
Pointer to the new checkbox.
txt_checkbox_t* TXT_NewInvertedCheckBox ( char *  label,
int *  variable 
)

Create a new inverted checkbox.

An inverted checkbox displays the opposite of a normal checkbox; where it would be checked, it appears unchecked, and vice-versa.

Parameters:
labelThe label for the new checkbox.
variablePointer to the variable containing this checkbox's value.
Returns:
Pointer to the new checkbox.

Variable Documentation

Initial value:
{
    TXT_CheckBoxSizeCalc,
    TXT_CheckBoxDrawer,
    TXT_CheckBoxKeyPress,
    TXT_CheckBoxDestructor,
    TXT_CheckBoxMousePress,
    NULL,
}
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends