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
176 return offscreenUi->isPointOnDesktopWindow(point);176 return offscreenUi->isPointOnDesktopWindow(point);
177}177}
178 178
179glm::vec2 WindowScriptingInterface::getDeviceSize() const {
180 return qApp->getDeviceSize();
181}
182
179/// Makes sure that the reticle is visible, use this in blocking forms that require a reticle and183/// Makes sure that the reticle is visible, use this in blocking forms that require a reticle and
180/// might be in same thread as a script that sets the reticle to invisible184/// might be in same thread as a script that sets the reticle to invisible
181void WindowScriptingInterface::ensureReticleVisible() const {185void WindowScriptingInterface::ensureReticleVisible() const {