Nuclide
Software Development Kit for id Tech
VGUIWidget Class Reference

The base VGUI widget class. More...

Inheritance diagram for VGUIWidget:
VGUI3DView VGUICheckbox VGUIControl VGUIFrame VGUILabel VGUIList VGUIListBox VGUIMenuButton VGUIPic VGUIRadio VGUIScrollbar VGUISlider VGUITabView VGUITextBox VGUIView

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...
 

Detailed Description

The base VGUI widget class.

Every VGUI widget is based off of this.

Constructor & Destructor Documentation

◆ VGUIWidget()

void VGUIWidget::VGUIWidget ( void  )

Member Function Documentation

◆ Add()

void VGUIWidget::Add ( VGUIWidget  wNew)
virtual

Adds a widget into this one.

Reimplemented in VGUIView.

◆ Draw()

void VGUIWidget::Draw ( void  )
virtual

◆ FlagAdd()

void VGUIWidget::FlagAdd ( int  iFlag)

Add a flag to the widget.

◆ FlagRemove()

void VGUIWidget::FlagRemove ( int  iFlag)

Remove a flag from the widget.

◆ GetMaxSize()

vector VGUIWidget::GetMaxSize ( void  )

Returns the maximum size of the widget.

◆ GetMinSize()

vector VGUIWidget::GetMinSize ( void  )

Returns the minimum size of the widget.

◆ GetPos()

vector VGUIWidget::GetPos ( void  )

Return the position of the widget within its context.

◆ GetPosHeight()

int VGUIWidget::GetPosHeight ( void  )

Returns the Y coordinate of the widget position within its context.

◆ GetPosWidth()

int VGUIWidget::GetPosWidth ( void  )

Returns the X coordinate of the widget position within its context.

◆ GetSize()

vector VGUIWidget::GetSize ( void  )

Returns the size of the widget, in pixels.

◆ GetSizeHeight()

int VGUIWidget::GetSizeHeight ( void  )

Returns the height of the widget, in pixels.

◆ GetSizeWidth()

int VGUIWidget::GetSizeWidth ( void  )

Returns the width of the widget, in pixels.

◆ GetTheme()

VGUITheme VGUIWidget::GetTheme ( void  )

Returns the VGUI that will be used on this widget.

◆ HasFlag()

bool VGUIWidget::HasFlag ( int  flag)

Check if the VGUIWidget has a flag attached.

◆ Hide()

void VGUIWidget::Hide ( void  )

Hide the widget.

◆ Input()

bool VGUIWidget::Input ( float  flEVType,
float  flKey,
float  flChar,
float  flDevID 
)
virtual

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.

◆ NowHidden()

void VGUIWidget::NowHidden ( void  )
virtual

◆ NowVisible()

void VGUIWidget::NowVisible ( void  )
virtual

Reimplemented in VGUIWindow.

◆ PositionChanged()

void VGUIWidget::PositionChanged ( vector  vecOld,
vector  vecNew 
)
virtual

Called when the position of the widget was changed in any capacity.

Reimplemented in VGUITabView.

◆ Reposition()

void VGUIWidget::Reposition ( void  )
virtual

Called whenever the physical properties of the display change.

◆ SetMaxSize()

void VGUIWidget::SetMaxSize ( vector  vecNewSize)

Sets the maximum size of the widget.

◆ SetMinSize()

void VGUIWidget::SetMinSize ( vector  vecNewSize)

Sets the minimum size of the widget.

◆ SetPos()

void VGUIWidget::SetPos ( vector  vecNewPos)

Set the position within its context.

◆ SetSize()

void VGUIWidget::SetSize ( vector  vecNewSize)

Set the size of the widget to a new one.

◆ SetTheme()

void VGUIWidget::SetTheme ( VGUITheme  theme)

Sets the VGUITheme to use on this widget (and any children it may have)

◆ Show()

void VGUIWidget::Show ( void  )

Show the widget.

◆ SizeChanged()

void VGUIWidget::SizeChanged ( vector  vecOld,
vector  vecNew 
)
virtual

Called when the size of the widget has changed in any capacity.

Reimplemented in VGUITabView, and VGUIWindow.

◆ Spawned()

void VGUIWidget::Spawned ( void  )
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 in VGUI3DView, VGUIButton, VGUICheckbox, VGUILabel, VGUIList, VGUIListBox, VGUIMenuButton, VGUIPic, VGUIRadio, VGUISlider, VGUITabView, VGUITextBox, and VGUIWindow.

◆ Visible()

bool VGUIWidget::Visible ( void  )

Returns true/false depending on if the widget is visible.


The documentation for this class was generated from the following file: