nGuiButton Class Reference
[Graphical User Interface]
#include <nguibutton.h>
Inheritance diagram for nGuiButton:

Detailed Description
A GUI button class.(C) 2001 RadonLabs GmbH
Definition at line 14 of file nguibutton.h.
Public Member Functions | |
| nGuiButton () | |
| constructor | |
| virtual | ~nGuiButton () |
| destructor | |
| virtual bool | Render () |
| Rendering. | |
| virtual bool | OnButtonDown (const vector2 &mousePos) |
| handle button down event | |
| virtual bool | OnButtonUp (const vector2 &mousePos) |
| handle button up event | |
| virtual void | OnFrame () |
| called per frame when parent widget is visible | |
Protected Attributes | |
| bool | focus |
| bool | pressed |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 14 of file nguibutton_main.cc. |
|
|
destructor
Definition at line 24 of file nguibutton_main.cc. |
Member Function Documentation
|
|
Rendering.
Reimplemented from nGuiWidget. Definition at line 114 of file nguibutton_main.cc. |
|
|
handle button down event If button has focus, set the pressed flag. Reimplemented from nGuiWidget. Definition at line 80 of file nguibutton_main.cc. |
|
|
handle button up event If pressed flag is set, execute the associated command. Reimplemented from nGuiWidget. Definition at line 98 of file nguibutton_main.cc. |
|
|
called per frame when parent widget is visible If mouse is over sensitive area, set the focus flag. Clear focus and pressed flag otherwise. Reimplemented from nGuiWidget. Definition at line 35 of file nguibutton_main.cc. |
Member Data Documentation
|
|
Definition at line 31 of file nguibutton.h. |
|
|
Definition at line 32 of file nguibutton.h. |
The documentation for this class was generated from the following files: