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.cpp (1 of 5 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+4−0
@@ -176,6 +176,10 @@ bool WindowScriptingInterface::isPointOnDesktopWindow(QVariant point) { · 175 unmodified lines
176176 return offscreenUi->isPointOnDesktopWindow(point);
177177 }
178178
179+glm::vec2 WindowScriptingInterface::getDeviceSize() const {
180+ return qApp->getDeviceSize();
181+}
182+
179183 /// Makes sure that the reticle is visible, use this in blocking forms that require a reticle and
180184 /// might be in same thread as a script that sets the reticle to invisible
181185 void WindowScriptingInterface::ensureReticleVisible() const {