src/rootwindow.hh (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- #ifndef __rootwindow_hh #define __rootwindow_hh /*! @file rootwindow.hh @brief The OBClient class maintains the state of a client window by handling property changes on the window and some client messages */ extern "C" { #include <X11/Xlib.h> #ifdef SHAPE #include <X11/extensions/shape.h> #endif // SHAPE } #include <string> #include <vector> #include "widget.hh" #include "otk/screeninfo.hh" #include "otk/eventhandler.hh" #include "otk/property.hh" namespace ob { //! Maintains the state of a root window's properties. /*! OBRootWindow maintains the state of a root window. The state consists of the hints that the wm sets on the window, such as the number of desktops, gravity. <p> OBRootWindow also manages client messages for the root window. */ class OBRootWindow : public otk::OtkEventHandler, public OBWidget { private: //! Information about this screen const otk::ScreenInfo *_info; //! The names of all desktops otk::OBProperty::StringVect _names; //! Get desktop names from the void updateDesktopNames(); public: //! Constructs a new OBRootWindow for a screen /*! @param screen The screen whose root window to wrap */ OBRootWindow(int screen); //! Destroys the OBRootWindow object virtual ~OBRootWindow(); //! Sets the name of all desktops void setDesktopNames(const otk::OBProperty::StringVect &names); //! Sets the name of a desktop /*! @param i The index of the desktop to set the name for (base 0) @param name The name to set for the desktop */ void setDesktopName(int i, const std::string &name); virtual void propertyHandler(const XPropertyEvent &e); virtual void clientMessageHandler(const XClientMessageEvent &e); virtual void mapRequestHandler(const XMapRequestEvent &e); }; } #endif // __client_hh |