Nuclide
Software Development Kit for id Technology (BETA)
vguiToggleButton Class Reference

About this class

VGUI Widget: Toggle Button.

Inheritance diagram for vguiToggleButton:
vguiControl

Public Member Functions

void vguiToggleButton (void)
 
nonvirtual void SetTitle (string)
 
nonvirtual int GetValue (void)
 
nonvirtual void SetValue (int)
 
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...
 

Constructor & Destructor Documentation

◆ vguiToggleButton()

void vguiToggleButton::vguiToggleButton ( void  )

Member Function Documentation

◆ Draw()

void vguiToggleButton::Draw ( void  )
virtual

Called in order to draw the widget.

Reimplemented from vguiWidget.

◆ GetValue()

int vguiToggleButton::GetValue ( void  )

◆ Input()

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

Called whenever an input event gets directed to the widget.

Reimplemented from vguiWidget.

◆ SetTitle()

void vguiToggleButton::SetTitle ( string  strName)

◆ SetValue()

void vguiToggleButton::SetValue ( int  iValue)

◆ Spawned()

void vguiToggleButton::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 from vguiWidget.


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