Showing the changes to interface/src/scripting/DesktopScriptingInterface.h (1 of 3 files). Show all
Unified · Split
| @@ -0,0 +1,29 @@ | ||
| 1 | +// | |
| 2 | +// DesktopScriptingInterface.h | |
| 3 | +// interface/src/scripting | |
| 4 | +// | |
| 5 | +// Created by David Rowe on 25 Aug 2015. | |
| 6 | +// Copyright 2015 High Fidelity, Inc. | |
| 7 | +// | |
| 8 | +// Distributed under the Apache License, Version 2.0. | |
| 9 | +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
| 10 | +// | |
| 11 | + | |
| 12 | +#ifndef hifi_DesktopScriptingInterface_h | |
| 13 | +#define hifi_DesktopScriptingInterface_h | |
| 14 | + | |
| 15 | +#include <QObject> | |
| 16 | + | |
| 17 | +#include <DependencyManager.h> | |
| 18 | + | |
| 19 | +class DesktopScriptingInterface : public QObject, public Dependency { | |
| 20 | + Q_OBJECT | |
| 21 | + Q_PROPERTY(int width READ getWidth) // Physical width of screen(s) including task bars and system menus | |
| 22 | + Q_PROPERTY(int height READ getHeight) // Physical height of screen(s) including task bars and system menus | |
| 23 | + | |
| 24 | +public: | |
| 25 | + int getWidth(); | |
| 26 | + int getHeight(); | |
| 27 | +}; | |
| 28 | + | |
| 29 | +#endif // hifi_DesktopScriptingInterface_h | |