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

Spin control widget. More...

Go to the source code of this file.

Data Structures

struct  txt_spincontrol_s

Typedefs

typedef struct txt_spincontrol_s txt_spincontrol_t
 Spin control widget.

Enumerations

enum  txt_spincontrol_type_t { TXT_SPINCONTROL_INT, TXT_SPINCONTROL_FLOAT }

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.

Detailed Description

Spin control widget.


Typedef Documentation

Spin control widget.

A spin control widget works as an input box that can be used to set numeric values, but also has buttons that allow its value to be increased or decreased.


Enumeration Type Documentation

Enumerator:
TXT_SPINCONTROL_INT 
TXT_SPINCONTROL_FLOAT 

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.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends