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

Functions

void TXT_SetButtonLabel (txt_button_t *button, char *label)
 Change the label used on a button.
txt_button_tTXT_NewButton (char *label)
 Create a new button widget.
txt_button_tTXT_NewButton2 (char *label, TxtWidgetSignalFunc func, void *user_data)
 Create a new button widget, binding the "pressed" signal to a specified callback function.

Variables

txt_widget_class_t txt_button_class

Function Documentation

txt_button_t* TXT_NewButton ( char *  label)

Create a new button widget.

Parameters:
labelThe label to use on the new button.
Returns:
Pointer to the 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.

Parameters:
labelThe label to use on the new button.
funcThe callback function to invoke.
user_dataUser-specified pointer to pass to the callback.
Returns:
Pointer to the new button widget.
void TXT_SetButtonLabel ( txt_button_t button,
char *  label 
)

Change the label used on a button.

Parameters:
buttonThe button.
labelThe new label.

Variable Documentation

Initial value:
{
    TXT_ButtonSizeCalc,
    TXT_ButtonDrawer,
    TXT_ButtonKeyPress,
    TXT_ButtonDestructor,
    TXT_ButtonMousePress,
    NULL,
}
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends