History

Add Desktop object to JavaScript with width and height properties

David Rowe committed 11 years ago

Commit 9d3d1041 parent 08ee5cb3 files · +60 −0Browse files

Showing the changes to interface/src/scripting/DesktopScriptingInterface.h (1 of 3 files). Show all

Unified · Split

interface/src/scripting/DesktopScriptingInterface.h+29−0
@@ -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
19class 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
24public:
25 int getWidth();
26 int getHeight();
27};
28
29#endif // hifi_DesktopScriptingInterface_h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t