Nuclide
Software Development Kit for id Technology (BETA)
|
The base VGUI widget class.
Every VGUI widget is based off of this.
Public Member Functions | |
void | vguiWidget (void) |
virtual void | Add (vguiWidget) |
Adds a widget into this one. More... | |
nonvirtual void | FlagAdd (int) |
Add a flag to the widget. More... | |
nonvirtual void | FlagRemove (int) |
Remove a flag from the widget. More... | |
nonvirtual bool | HasFlag (int) |
Check if the vguiWidget has a flag attached. More... | |
nonvirtual void | SetPos (vector) |
Set the position within its context. More... | |
nonvirtual vector | GetPos (void) |
Return the position of the widget within its context. More... | |
nonvirtual int | GetPosWidth (void) |
Returns the X coordinate of the widget position within its context. More... | |
nonvirtual int | GetPosHeight (void) |
Returns the Y coordinate of the widget position within its context. More... | |
nonvirtual void | SetSize (vector) |
Set the size of the widget to a new one. More... | |
nonvirtual vector | GetSize (void) |
Returns the size of the widget, in pixels. More... | |
nonvirtual int | GetWidth (void) |
Returns the width of the widget, in pixels. More... | |
nonvirtual int | GetHeight (void) |
Returns the height of the widget, in pixels. More... | |
nonvirtual void | SetMinSize (vector) |
Sets the minimum size of the widget. More... | |
nonvirtual vector | GetMinSize (void) |
Returns the minimum size of the widget. More... | |
nonvirtual void | SetMaxSize (vector) |
Sets the maximum size of the widget. More... | |
nonvirtual vector | GetMaxSize (void) |
Returns the maximum size of the widget. More... | |
nonvirtual bool | Visible (void) |
Returns true/false depending on if the widget is visible. More... | |
nonvirtual void | Show (void) |
Show the widget. More... | |
nonvirtual void | Hide (void) |
Hide the widget. More... | |
nonvirtual void | SetTheme (vguiTheme) |
Sets the vguiTheme to use on this widget (and any children it may have) More... | |
nonvirtual vguiTheme | GetTheme (void) |
Returns the VGUI that will be used on this widget. More... | |
virtual void | PositionChanged (vector, vector) |
Called when the position of the widget was changed in any capacity. More... | |
virtual void | SizeChanged (vector, vector) |
Called when the size of the widget has changed in any capacity. More... | |
virtual void | NowVisible (void) |
virtual void | NowHidden (void) |
virtual void | Draw (void) |
Called in order to draw the widget. More... | |
virtual void | Reposition (void) |
Called whenever the physical properties of the display change. 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... | |