diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-11 10:26:08 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-11 10:26:08 +0000 |
| commit | 06a80ce2c7a189e26063d5e4e475ca500778aba5 (patch) | |
| tree | 545007018d8c8e27de2a1cf13eaa14dfb4332270 /src/screen.hh | |
| parent | cee305244662d352a7ad5ab7ae22f6221c064d3d (diff) | |
manage and unmanage windows in OBScreen
Diffstat (limited to 'src/screen.hh')
| -rw-r--r-- | src/screen.hh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/screen.hh b/src/screen.hh index d4d42a7c..c20e676f 100644 --- a/src/screen.hh +++ b/src/screen.hh @@ -97,7 +97,7 @@ private: public: //! Constructs a new OBScreen object - OBScreen(int screen); + OBScreen(int screen, const otk::Configuration &config); //! Destroys the OBScreen object virtual ~OBScreen(); @@ -107,6 +107,9 @@ public: inline const otk::Point &size() const { return _size; } //! Returns the area of the screen not reserved by applications' Struts inline const otk::Rect &area() const { return _area; } + //! Returns the style in use on the screen + inline const otk::Style *style() const { return &_style; } + //! Adds a window's strut to the screen's list of reserved spaces void addStrut(otk::Strut *strut); @@ -116,7 +119,17 @@ public: //! Loads a new style on the screen void loadStyle(const otk::Configuration &config); - inline const otk::Style *style() const { return &_style; } + //! Manage a client window + /*! + This gives the window a frame, reparents it, selects events on it, etc. + */ + void manageWindow(Window window); + //! Unmanage a client + /*! + This removes the window's frame, reparents it to root, unselects events on + it, etc. + */ + void unmanageWindow(OBClient *client); }; } |
