summaryrefslogtreecommitdiff
path: root/util/epist/window.hh
diff options
context:
space:
mode:
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; }