// -*- mode: C++; indent-tabs-mode: nil; -*-
-// window.hh for Epistory - a key handler for NETWM/EWMH window managers.
+// window.hh for Epistophy - a key handler for NETWM/EWMH window managers.
// Copyright (c) 2002 - 2002 Ben Jansens <ben at orodu.net>
//
// Permission is hereby granted, free of charge, to any person obtaining a
#include <string>
class epist;
+class screen;
class XWindow;
class XAtom;
class XWindow {
private:
epist *_epist;
+ screen *_screen;
XAtom *_xatom;
Window _window;
void updateClass();
public:
- XWindow(epist *epist, Window window);
+ XWindow(epist *epist, screen *screen, Window window);
virtual ~XWindow();
inline Window window() const { return _window; }
void processEvent(const XEvent &e);
+ void shade(const bool sh) const;
+ void close() const;
+ void raise() const;
+ void lower() const;
+ void iconify() const;
+
bool operator == (const XWindow &w) const { return w._window == _window; }
bool operator == (const Window &w) const { return w == _window; }
};