9 #define TITLE_HEIGHT 30
47 Window(
unsigned int x,
unsigned int y,
unsigned int width,
48 unsigned int height,
const char* label)
63 return (x >= m_x && x <= m_x + m_width && y >= m_y-TITLE_HEIGHT &&
71 virtual bool isMouseOver();
OText * m_labelText
Definition: Window.h:37
Window(unsigned int x, unsigned int y, unsigned int width, unsigned int height, const char *label)
Definition: Window.h:47
float m_my
Definition: Window.h:40
WindowManager * m_wm
Definition: Window.h:44
float m_mx
Definition: Window.h:39
This class manages all windows on screen, that means managing order and selection of windows...
Definition: WindowManager.h:23
A Container organizes multiple Widgets into one to provide layout functionality.
Definition: Container.h:20
WINDOW_STATE m_state
Definition: Window.h:42
void draw(Vector2 offset)
Draws the widget to the canvas it belongs to.
Definition: Window.h:68
bool containsPoint(float x, float y)
Definition: Window.h:61
void setWindowManager(WindowManager *wm)
Definition: Window.h:59
WINDOW_STATE
Definition: Window.h:20
This class implements a Window that can be used to display widgets.
Definition: Window.h:33