History

expose Window.getDeviceSize()

SamGondelman committed 8 years ago

Commit c5ebb8a1 parent e6c6e5f5 files · +12 −12Browse files

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

Unified · Split

interface/src/scripting/WindowScriptingInterface.h+3−0
@@ -12,6 +12,8 @@ · 11 unmodified lines
12#ifndef hifi_WindowScriptingInterface_h12#ifndef hifi_WindowScriptingInterface_h
13#define hifi_WindowScriptingInterface_h13#define hifi_WindowScriptingInterface_h
14 14
15#include <glm/glm.hpp>
16
15#include <QtCore/QObject>17#include <QtCore/QObject>
16#include <QtCore/QString>18#include <QtCore/QString>
17#include <QtQuick/QQuickItem>19#include <QtQuick/QQuickItem>
@@ -73,6 +75,7 @@ public slots: · 55 unmodified lines
73 bool isPhysicsEnabled();75 bool isPhysicsEnabled();
74 bool setDisplayTexture(const QString& name);76 bool setDisplayTexture(const QString& name);
75 bool isPointOnDesktopWindow(QVariant point);77 bool isPointOnDesktopWindow(QVariant point);
78 glm::vec2 getDeviceSize() const;
76 79
77 int openMessageBox(QString title, QString text, int buttons, int defaultButton);80 int openMessageBox(QString title, QString text, int buttons, int defaultButton);
78 void updateMessageBox(int id, QString title, QString text, int buttons, int defaultButton);81 void updateMessageBox(int id, QString title, QString text, int buttons, int defaultButton);

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