![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
VGUI Widget: Button.
Public Member Functions | |
| void | vguiButton (void) |
| nonvirtual void | SetTitle (string) |
| Sets the title of the button. More... | |
| nonvirtual void | SetIcon (string) |
| Sets the icon of the button. More... | |
| nonvirtual void | SetColor (vector) |
| Sets the color of the button text. More... | |
| nonvirtual void | SetIconColor (vector) |
| Sets the color of the icon on the button. More... | |
| nonvirtual string | GetTitle (void) |
| Gets the title of the button. More... | |
| nonvirtual void | SetFunc (void(void)) |
| Sets the function to call when the button is pressed. More... | |
| nonvirtual void | SetAction (void(vguiControl sender)) |
| Sets the function to call when the button is pressed. More... | |
| nonvirtual void | SetExec (string) |
| Sets the command to execute when the button is pressed. More... | |
| nonvirtual bool | ButtonDisabled (void) |
| Returns whether this button is disabled (true) or active (false). More... | |
| nonvirtual void | ResizeToContents (void) |
| virtual void | Draw (void) |
| Called in order to draw the widget. More... | |
| virtual bool | Input (float, float, float, float) |
| Called whenever an input event gets directed to the widget. More... | |
| virtual void | Spawned (void) |
| Called when the widget has fully initialized. More... | |
| virtual vguiWidget | InitWithFrame (vector pos, vector size) |
| void vguiButton::vguiButton | ( | void | ) |
| bool vguiButton::ButtonDisabled | ( | void | ) |
Returns whether this button is disabled (true) or active (false).
|
virtual |
Called in order to draw the widget.
Reimplemented from vguiWidget.
Reimplemented in vguiCommandButton, vguiMenuButton, and vguiMenuItem.
| string vguiButton::GetTitle | ( | void | ) |
Gets the title of the button.
|
virtual |
|
virtual |
Called whenever an input event gets directed to the widget.
Reimplemented from vguiWidget.
Reimplemented in vguiCommandButton, and vguiMenuButton.
| void vguiButton::ResizeToContents | ( | void | ) |
| void vguiButton::SetAction | ( | void(vguiControl sender) | func | ) |
Sets the function to call when the button is pressed.
| void vguiButton::SetColor | ( | vector | vecColor | ) |
Sets the color of the button text.
| void vguiButton::SetExec | ( | string | exe | ) |
Sets the command to execute when the button is pressed.
| void vguiButton::SetFunc | ( | void(void) | func | ) |
Sets the function to call when the button is pressed.
| void vguiButton::SetIcon | ( | string | strName | ) |
Sets the icon of the button.
| void vguiButton::SetIconColor | ( | vector | vecColor | ) |
Sets the color of the icon on the button.
| void vguiButton::SetTitle | ( | string | strName | ) |
Sets the title of the button.
|
virtual |
Called when the widget has fully initialized.
When you override this, you may call super::Spawned(); to ensure the parent classes get to finish initializing also.
Reimplemented from vguiWidget.
Reimplemented in vguiMenuButton.