Nuclide
Software Development Kit for id Tech
|
The base VGUI widget class. More...
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 | GetSizeWidth (void) |
Returns the width of the widget, in pixels. More... | |
nonvirtual int | GetSizeHeight (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... | |
The base VGUI widget class.
Every VGUI widget is based off of this.
|
virtual |
Adds a widget into this one.
Reimplemented in VGUIView.
Called in order to draw the widget.
Reimplemented in VGUI3DView, VGUIButton, VGUICheckbox, VGUIFrame, VGUILabel, VGUIList, VGUIListBox, VGUIMenuButton, VGUIPic, VGUIRadio, VGUIScrollbar, VGUISlider, VGUITabView, VGUITextBox, VGUIView, and VGUIWindow.
void VGUIWidget::FlagAdd | ( | int | iFlag | ) |
Add a flag to the widget.
void VGUIWidget::FlagRemove | ( | int | iFlag | ) |
Remove a flag from the widget.
vector VGUIWidget::GetMaxSize | ( | void | ) |
Returns the maximum size of the widget.
vector VGUIWidget::GetMinSize | ( | void | ) |
Returns the minimum size of the widget.
vector VGUIWidget::GetPos | ( | void | ) |
Return the position of the widget within its context.
int VGUIWidget::GetPosHeight | ( | void | ) |
Returns the Y coordinate of the widget position within its context.
int VGUIWidget::GetPosWidth | ( | void | ) |
Returns the X coordinate of the widget position within its context.
vector VGUIWidget::GetSize | ( | void | ) |
Returns the size of the widget, in pixels.
int VGUIWidget::GetSizeHeight | ( | void | ) |
Returns the height of the widget, in pixels.
int VGUIWidget::GetSizeWidth | ( | void | ) |
Returns the width of the widget, in pixels.
bool VGUIWidget::HasFlag | ( | int | flag | ) |
Check if the VGUIWidget has a flag attached.
Called whenever an input event gets directed to the widget.
Reimplemented in VGUI3DView, VGUIButton, VGUICheckbox, VGUILabel, VGUIList, VGUIListBox, VGUIMenuButton, VGUIPic, VGUIScrollbar, VGUISlider, VGUITabView, VGUITextBox, VGUIView, and VGUIWindow.
Reimplemented in VGUIWindow.
|
virtual |
Called when the position of the widget was changed in any capacity.
Reimplemented in VGUITabView.
Called whenever the physical properties of the display change.
void VGUIWidget::SetMaxSize | ( | vector | vecNewSize | ) |
Sets the maximum size of the widget.
void VGUIWidget::SetMinSize | ( | vector | vecNewSize | ) |
Sets the minimum size of the widget.
void VGUIWidget::SetPos | ( | vector | vecNewPos | ) |
Set the position within its context.
void VGUIWidget::SetSize | ( | vector | vecNewSize | ) |
Set the size of the widget to a new one.
Sets the VGUITheme to use on this widget (and any children it may have)
|
virtual |
Called when the size of the widget has changed in any capacity.
Reimplemented in VGUITabView, and VGUIWindow.
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 in VGUI3DView, VGUIButton, VGUICheckbox, VGUILabel, VGUIList, VGUIListBox, VGUIMenuButton, VGUIPic, VGUIRadio, VGUISlider, VGUITabView, VGUITextBox, and VGUIWindow.
bool VGUIWidget::Visible | ( | void | ) |
Returns true/false depending on if the widget is visible.