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

About this class

VGUI Widget: Menu Button.

Inheritance diagram for vguiMenuButton:
vguiButton

Public Member Functions

void vguiMenuButton (void)
 
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...
 
virtual void Reposition (void)
 Called whenever the physical properties of the display change. More...
 
virtual void OnMouseEntered (void)
 Called when the mouse starts hovering over this element. More...
 
virtual void OnMouseDown (void)
 Called when the mouse starts klicking down on this element. More...
 
virtual void OnMouseUp (void)
 Called when the mouse stops klicking down on this element. More...
 
nonvirtual void SetPosition (int)
 

Constructor & Destructor Documentation

◆ vguiMenuButton()

void vguiMenuButton::vguiMenuButton ( void  )

Member Function Documentation

◆ Draw()

void vguiMenuButton::Draw ( void  )
virtual

Called in order to draw the widget.

Reimplemented from vguiButton.

◆ Input()

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

Called whenever an input event gets directed to the widget.

Reimplemented from vguiButton.

◆ OnMouseDown()

void vguiMenuButton::OnMouseDown ( void  )
virtual

Called when the mouse starts klicking down on this element.

Reimplemented from vguiControl.

◆ OnMouseEntered()

void vguiMenuButton::OnMouseEntered ( void  )
virtual

Called when the mouse starts hovering over this element.

Reimplemented from vguiControl.

◆ OnMouseUp()

void vguiMenuButton::OnMouseUp ( void  )
virtual

Called when the mouse stops klicking down on this element.

This is when actions usually need to be triggered.

Reimplemented from vguiControl.

◆ Reposition()

void vguiMenuButton::Reposition ( void  )
virtual

Called whenever the physical properties of the display change.

Reimplemented from vguiWidget.

◆ SetPosition()

void vguiMenuButton::SetPosition ( int  newPosition)

◆ Spawned()

void vguiMenuButton::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 vguiButton.


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