Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|Client|libappfw: WindowSystem split to generic/client specific
WindowSystem was moved to libappfw, with the client-specific portions remaining as ClientWindowSystem.
- Loading branch information
Showing
21 changed files
with
319 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** @file clientwindowsystem.h | ||
* | ||
* @authors Copyright (c) 2014 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
* | ||
* @par License | ||
* GPL: http://www.gnu.org/licenses/gpl.html | ||
* | ||
* <small>This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. This program is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
* Public License for more details. You should have received a copy of the GNU | ||
* General Public License along with this program; if not, see: | ||
* http://www.gnu.org/licenses</small> | ||
*/ | ||
|
||
#ifndef DENG_CLIENTWINDOWSYSTEM_H | ||
#define DENG_CLIENTWINDOWSYSTEM_H | ||
|
||
#include <de/WindowSystem> | ||
#include "SettingsRegister" | ||
|
||
class ClientWindow; | ||
|
||
/** | ||
* Client-side window system for managing ClientWindow instances. | ||
*/ | ||
class ClientWindowSystem : public de::WindowSystem | ||
{ | ||
public: | ||
ClientWindowSystem(); | ||
|
||
SettingsRegister &settings(); | ||
|
||
/** | ||
* Constructs a new window using the default configuration. Note that the | ||
* default configuration is saved persistently when the engine shuts down | ||
* and is restored when the engine is restarted. | ||
* | ||
* Command line options (e.g., -xpos) can be used to modify the window | ||
* configuration. | ||
* | ||
* @param id Identifier of the window ("main" for the main window). | ||
* | ||
* @return ClientWindow instance. Ownership is retained by the window system. | ||
*/ | ||
ClientWindow *createWindow(de::String const &id = "main"); | ||
|
||
static ClientWindow &main(); | ||
static ClientWindow *mainPtr(); | ||
|
||
protected: | ||
void closingAllWindows(); | ||
bool rootProcessEvent(de::Event const &event); | ||
void rootUpdate(); | ||
|
||
private: | ||
DENG2_PRIVATE(d) | ||
}; | ||
|
||
#endif // DENG_CLIENTWINDOWSYSTEM_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.