X-Git-Url: http://git.mutantstargoat.com?p=winnie;a=blobdiff_plain;f=src%2Fwindow.h;fp=src%2Fwindow.h;h=ecbee9e2edcf0077656219ff0a83125460bc456f;hp=ee9c7a0fb08e9db4c8c09fcc3505cfe553178bb4;hb=15e07ead145a859762b48ac9062a07cddf826151;hpb=e4076629a736e957739c31cd20bbbbb70327023b diff --git a/src/window.h b/src/window.h index ee9c7a0..ecbee9e 100644 --- a/src/window.h +++ b/src/window.h @@ -7,9 +7,16 @@ #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 children; @@ -72,6 +79,9 @@ public: 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; };