Nuclide
Software Development Kit for id Tech
VGUIWindow Class Reference

VGUI: Window. More...

Inheritance diagram for VGUIWindow:
VGUIView

Public Member Functions

void VGUIWindow (void)
 
nonvirtual void SetTitle (string)
 Set the title of the window widget. More...
 
nonvirtual string GetTitle (void)
 Returns the title of the window widget. More...
 
nonvirtual void SetIcon (string)
 Sets the icon of the window widget. More...
 
nonvirtual string GetIcon (void)
 Returns the icon of the window widget. More...
 
nonvirtual void SetStyleMask (vguiWindowStyle_t)
 Sets the style mask of the specified window. More...
 
nonvirtual void CallOnResize (void(void) vFunc)
 Called when the window is was resized by the user. More...
 
nonvirtual void CallOnMove (void(void) vFunc)
 Called when the window has been repositioned by the user. More...
 
nonvirtual bool Focus (void)
 Will focus the window when called. More...
 
virtual void WindowDidMove (vector, vector)
 Called when the VGUIWindow got moved successfully. More...
 
virtual void WindowDidResize (vector, vector)
 Called when the VGUIWindow got resized successfully. More...
 
virtual void WindowDidClose (void)
 Called when the VGUIWindow was successfully closed. More...
 
virtual void Draw (void)
 Called in order to draw the widget. More...
 
virtual void SizeChanged (vector, vector)
 Called when the size of the widget has changed in any capacity. 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 NowVisible ()
 

Detailed Description

VGUI: Window.

Top-most window class in VGUILib.

Constructor & Destructor Documentation

◆ VGUIWindow()

void VGUIWindow::VGUIWindow ( void  )

Member Function Documentation

◆ CallOnMove()

void VGUIWindow::CallOnMove ( void(void vFunc)

Called when the window has been repositioned by the user.

◆ CallOnResize()

void VGUIWindow::CallOnResize ( void(void vFunc)

Called when the window is was resized by the user.

◆ Draw()

void VGUIWindow::Draw ( void  )
virtual

Called in order to draw the widget.

Reimplemented from VGUIView.

◆ Focus()

bool VGUIWindow::Focus ( void  )

Will focus the window when called.

◆ GetIcon()

string VGUIWindow::GetIcon ( void  )

Returns the icon of the window widget.

◆ GetTitle()

string VGUIWindow::GetTitle ( void  )

Returns the title of the window widget.

◆ Input()

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

Called whenever an input event gets directed to the widget.

Reimplemented from VGUIView.

◆ NowVisible()

void VGUIWindow::NowVisible ( void  )
virtual

Reimplemented from VGUIWidget.

◆ SetIcon()

void VGUIWindow::SetIcon ( string  strName)

Sets the icon of the window widget.

◆ SetStyleMask()

void VGUIWindow::SetStyleMask ( vguiWindowStyle_t  val)

Sets the style mask of the specified window.

◆ SetTitle()

void VGUIWindow::SetTitle ( string  strName)

Set the title of the window widget.

◆ SizeChanged()

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

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

Reimplemented from VGUIWidget.

◆ Spawned()

void VGUIWindow::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.

◆ WindowDidClose()

void VGUIWindow::WindowDidClose ( void  )
virtual

Called when the VGUIWindow was successfully closed.

◆ WindowDidMove()

void VGUIWindow::WindowDidMove ( vector  oldPosition,
vector  newPosition 
)
virtual

Called when the VGUIWindow got moved successfully.

◆ WindowDidResize()

void VGUIWindow::WindowDidResize ( vector  oldSize,
vector  newSize 
)
virtual

Called when the VGUIWindow got resized successfully.


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