projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maximize windows
[winnie]
/
src
/
window.h
diff --git
a/src/window.h
b/src/window.h
index
ee9c7a0
..
ecbee9e
100644
(file)
--- a/
src/window.h
+++ b/
src/window.h
@@
-7,9
+7,16
@@
#include "event.h"
class Window {
#include "event.h"
class Window {
+public:
+ enum State {STATE_NORMAL, STATE_MINIMIZED, STATE_MAXIMIZED, STATE_SHADED};
+
private:
char *title;
private:
char *title;
+ State state;
+
Rect rect;
Rect rect;
+ Rect normal_rect; // normal state rectangle managed by the wm
+
Callbacks callbacks;
std::vector<Window*> children;
Callbacks callbacks;
std::vector<Window*> children;
@@
-72,6
+79,9
@@
public:
const Window *get_parent() const;
Window *get_parent();
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;
};
// XXX remove if not needed
friend class WindowManager;
};