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

Functions

txt_spincontrol_tTXT_NewSpinControl (int *value, int min, int max)
 Create a new spin control widget tracking an integer value.
txt_spincontrol_tTXT_NewFloatSpinControl (float *value, float min, float max)
 Create a new spin control widget tracking a float value.

Variables

txt_widget_class_t txt_spincontrol_class

Function Documentation

txt_spincontrol_t* TXT_NewFloatSpinControl ( float *  value,
float  min,
float  max 
)

Create a new spin control widget tracking a float value.

Parameters:
valuePointer to the variable containing the value displayed in the widget.
minMinimum value that may be set.
maxMaximum value that may be set.
Returns:
Pointer to the new spin control widget.
txt_spincontrol_t* TXT_NewSpinControl ( int *  value,
int  min,
int  max 
)

Create a new spin control widget tracking an integer value.

Parameters:
valuePointer to the variable containing the value displayed in the widget.
minMinimum value that may be set.
maxMaximum value that may be set.
Returns:
Pointer to the new spin control widget.

Variable Documentation

Initial value:
{
    TXT_SpinControlSizeCalc,
    TXT_SpinControlDrawer,
    TXT_SpinControlKeyPress,
    TXT_SpinControlDestructor,
    TXT_SpinControlMousePress,
    NULL,
}
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends