#include "event.h"
class Window {
+public:
+ enum State {STATE_NORMAL, STATE_MINIMIZED, STATE_MAXIMIZED, STATE_SHADED};
+
private:
char *title;
+ State state;
+
Rect rect;
+ Rect normal_rect; // normal state rectangle managed by the wm
+
Callbacks callbacks;
std::vector<Window*> children;
*/
void invalidate();
- void draw(const Rect &dirty_region);
+ void draw(Rect *dirty_region);
void draw_children(const Rect &dirty_region);
unsigned char *get_win_start_on_fb();
const Window *get_parent() const;
Window *get_parent();
+ void set_state(State state);
+ State get_state() const;
+
// XXX remove if not needed
friend class WindowManager;
};