40 #define CUI_CONTAINER_MAX 64
49 std::vector<uiWindow*> _vControls;
58 laPoint3 ptShadowOffset;
61 M_BOOL _bDisplayBorders;
63 unsigned _nDragButton;
66 laPoint3 _ptDragOffset;
79 virtual void drawBorders();
88 _bDisplayBorders = bEnable;
91 if(bEnable)caption.show();
else caption.hide();
97 _nDragButton = nButton;
108 virtual void create(laPoint3 pos, laPoint3 size);
117 virtual void reply();
122 virtual void onMouseMove(laPoint3 ptRelativePos);
123 virtual void onUp(
unsigned nButton);
127 virtual void load(
char* strFile);
void kill()
Discard window and all children.
virtual void create(laPoint3 pos, laPoint3 size)
Create new empty window.
virtual void draw()
Display the window.
Base class for GUI windows.
laPoint3 _ptDecorationSize
Size of border elements; defaults to 0.
void toggleBorders(M_BOOL bEnable)
Toggle border visbility.
void toggleMoveable(M_BOOL bEnable, unsigned nButton=0)
Toggle moveable flag.
virtual void reply()
Handle input message.