![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
VGUI Widget: Button.
Public Member Functions | |
| void | vguiTabViewItem (void) |
| nonvirtual void | SetTitle (string) |
| Sets the title of the button. | |
| nonvirtual void | SetIcon (string) |
| Sets the icon of the button. | |
| nonvirtual void | SetColor (vector) |
| Sets the color of the button text. | |
| nonvirtual void | SetIconColor (vector) |
| Sets the color of the icon on the button. | |
| nonvirtual void | SetKeyEquivalent (string) |
| Sets the key to be pressed to order to simulate a click event. | |
| nonvirtual string | GetKeyEquivalent (void) |
| Returns the key to be pressed in order to simulate a click event. | |
| nonvirtual string | GetTitle (void) |
| Gets the title of the button. | |
| nonvirtual void | SetFunc (void(void)) |
| Sets the function to call when the button is pressed. | |
| nonvirtual void | SetExec (string) |
| Sets the command to execute when the button is pressed. | |
| virtual void | Draw (void) |
| Called in order to draw the widget. | |
| virtual bool | Input (float, float, float, float) |
| Called whenever an input event gets directed to the widget. | |
| virtual void | Spawned (void) |
| Called when the widget has fully initialized. | |
| void vguiTabViewItem::vguiTabViewItem | ( | void | ) |
|
virtual |
Called in order to draw the widget.
Reimplemented from vguiWidget.
| string vguiTabViewItem::GetKeyEquivalent | ( | void | ) |
Returns the key to be pressed in order to simulate a click event.
| string vguiTabViewItem::GetTitle | ( | void | ) |
Gets the title of the button.
|
virtual |
Called whenever an input event gets directed to the widget.
Reimplemented from vguiWidget.
| void vguiTabViewItem::SetColor | ( | vector | vecColor | ) |
Sets the color of the button text.
| void vguiTabViewItem::SetExec | ( | string | exe | ) |
Sets the command to execute when the button is pressed.
| void vguiTabViewItem::SetFunc | ( | void(void) | func | ) |
Sets the function to call when the button is pressed.
| void vguiTabViewItem::SetIcon | ( | string | strName | ) |
Sets the icon of the button.
| void vguiTabViewItem::SetIconColor | ( | vector | vecColor | ) |
Sets the color of the icon on the button.
| void vguiTabViewItem::SetKeyEquivalent | ( | string | keyValue | ) |
Sets the key to be pressed to order to simulate a click event.
| void vguiTabViewItem::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.