- //! Constructs a new OBScreen object
- OBScreen(int screen, const otk::Configuration &config);
- //! Destroys the OBScreen object
- virtual ~OBScreen();
-
- //! Returns the Image Control used for rendering on the screen
- inline otk::BImageControl *imageControl() { return _image_control; }
- //! Returns the dimentions of the screen
- inline const otk::Point &size() const { return _size; }
+ //! Constructs a new Screen object
+ Screen(int screen);
+ //! Destroys the Screen object
+ virtual ~Screen();
+
+ inline int number() const { return _number; }
+
+ //! Returns if the screen was successfully managed
+ /*!
+ If this is false, then the screen should be deleted and should NOT be
+ used.
+ */
+ inline bool managed() const { return _managed; }
+
+ //! Returns the config options set by the user scripts
+ Config& config() { return _config; }
+
+ //! An offscreen window which gets focus when nothing else has it
+ inline Window focuswindow() const { return _focuswindow; }
+ //! Returns the desktop being displayed
+ inline unsigned int desktop() const { return _desktop; }
+ //! Returns the number of desktops
+ inline unsigned int numDesktops() const { return _num_desktops; }
+ //! When true, the desktop is being shown and all clients are hidden
+ inline bool showingDesktop() const { return _showing_desktop; }
+