|
Odamex
Setting the Standard in Multiplayer Doom
|
Button widget. More...
Go to the source code of this file.
Data Structures | |
| struct | txt_button_s |
Typedefs | |
| typedef struct txt_button_s | txt_button_t |
| Button widget. | |
Functions | |
| txt_button_t * | TXT_NewButton (char *label) |
| Create a new button widget. | |
| txt_button_t * | TXT_NewButton2 (char *label, TxtWidgetSignalFunc func, void *user_data) |
| Create a new button widget, binding the "pressed" signal to a specified callback function. | |
| void | TXT_SetButtonLabel (txt_button_t *button, char *label) |
| Change the label used on a button. | |
Button widget.
| typedef struct txt_button_s txt_button_t |
Button widget.
A button is a widget that can be selected to perform some action. When a button is pressed, it emits the "pressed" signal.
| txt_button_t* TXT_NewButton | ( | char * | label | ) |
Create a new button widget.
| label | The label to use on the new button. |
| txt_button_t* TXT_NewButton2 | ( | char * | label, |
| TxtWidgetSignalFunc | func, | ||
| void * | user_data | ||
| ) |
Create a new button widget, binding the "pressed" signal to a specified callback function.
| label | The label to use on the new button. |
| func | The callback function to invoke. |
| user_data | User-specified pointer to pass to the callback. |
| void TXT_SetButtonLabel | ( | txt_button_t * | button, |
| char * | label | ||
| ) |
Change the label used on a button.
| button | The button. |
| label | The new label. |