summaryrefslogtreecommitdiff
path: root/util/epist/window.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-20 18:44:39 +0000
committerDana Jansens <danakj@orodu.net>2002-07-20 18:44:39 +0000
commit4aeca296e895bfe74d59d4732e740c2d49c10080 (patch)
tree05265db6f0408c67c6821ce3286b5649bde22551 /util/epist/window.hh
parentf7a41999bfa20750f192d7fa5447bb133451db76 (diff)
implement toggleMaximize(Vert|Horz|Full)
Diffstat (limited to 'util/epist/window.hh')
-rw-r--r--util/epist/window.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/epist/window.hh b/util/epist/window.hh
index 5ba04356..e7f38280 100644
--- a/util/epist/window.hh
+++ b/util/epist/window.hh
@@ -38,6 +38,14 @@ class XAtom;
typedef std::list<XWindow *> WindowList;
class XWindow {
+public:
+ enum Max {
+ Max_None,
+ Max_Horz,
+ Max_Vert,
+ Max_Full
+ };
+
private:
epist *_epist;
screen *_screen;
@@ -90,6 +98,8 @@ public:
void focus() const;
void sendTo(unsigned int dest) const;
void move(int x, int y) const;
+ void toggleMaximize(Max max) const; // i hate toggle functions
+ void maximize(Max max) const;
bool operator == (const XWindow &w) const { return w._window == _window; }
bool operator == (const Window &w) const { return w == _window; }