JNR
|
Base class for GUI windows. More...
#include <uiWindow.h>
Public Member Functions | |
uiWindow (void) | |
Class constructor. | |
M_BOOL | isMouseInside () |
Helpful function that checks if the mouse pointer is inside the window. | |
virtual void | move (laPoint3 ptNewPos, unsigned nHReference=M_AL, unsigned nVReference=M_AT) |
Change window position. | |
Create/Destroy the window | |
virtual void | create (laPoint3 pos, laPoint3 size) |
Create new empty window. | |
virtual void | kill () |
Discard window and all children. | |
virtual void | load (class laFileParser *fp) |
Load a dialog layout form .cui file. | |
Implementation of interactivity and rendering for the GUI window | |
virtual void | reply () |
Handle input message. | |
virtual void | draw () |
Display the window. | |
Get/Set window flags | |
virtual void | show () |
virtual void | hide () |
bool | isVisible () |
void | enable () |
void | disable () |
bool | isEnabled () |
Get/Set window identifier | |
unsigned long | getID () |
void | setID (unsigned long id) |
Getting window position and size | |
laPoint3 | getPos () |
Get relative window position with regard to parent. | |
laPoint3 | getAbsolutePos () |
Get absolute window position. | |
laPoint3 | getSize () |
laPoint3 | getDecorationSize () |
Virtual event handlers | |
virtual void | onMouseIn () |
virtual void | onMouseOut () |
virtual void | onMouseMove (laPoint3 ptRelativePos) |
virtual void | onDown (unsigned nButton) |
virtual void | onUp (unsigned nButton) |
virtual void | onClick (unsigned nButton) |
virtual void | onCommand (unsigned long uID, unsigned long nCmd) |
Command event handler. | |
Protected Member Functions | |
laPoint3 | getRelativePointerPos () |
Get mouse pointer position relative to window position. | |
Static Protected Member Functions | |
static uiPointer * | getMousePointer () |
Enables children to get a pointer to the mouse pointer, but not to change it. | |
Protected Attributes | |
uiWindow * | _pParent |
Pointer to parent window, if any. | |
bool | _bVisible |
Window visibility flag. | |
bool | _bEnabled |
Window interactivity flag. | |
Window poisiton and size | |
laPoint3 | _ptPos |
Windos position (relative to parent) | |
laPoint3 | _ptSize |
Window size. | |
laPoint3 | _ptDecorationSize |
Size of border elements; defaults to 0. | |
Friends | |
class | uiDesktop |
class | uiContainer |
class | uiSlider |
Additional Inherited Members | |
![]() | |
static uiSkin * | _pSkin = NULL |
Base class for GUI windows.
This class implements the basic functionality of a GUI "window". It provides window positioning, sizing and hierachy functions; It tracks the input device and provides virtual event handlers for the mouse and for custom commands.
Definition at line 45 of file uiWindow.h.