History

saving work

druiz17 committed 9 years ago

Commit 20918641 parent da3d5a96 files · +36 −3Browse files

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

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+5−0
@@ -171,6 +171,11 @@ void WindowScriptingInterface::setPreviousBrowseAssetLocation(const QString& loc · 170 unmodified lines
171171 Setting::Handle<QVariant>(LAST_BROWSE_ASSETS_LOCATION_SETTING).set(location);
172172 }
173173
174+bool WindowScriptingInterface::isPointOnDesktopWindow(QVariant point) {
175+ auto offscreenUi = DependencyManager::get<OffscreenUi>();
176+ return offscreenUi->isPointOnDesktopWindow(point);
177+}
178+
174179 /// Makes sure that the reticle is visible, use this in blocking forms that require a reticle and
175180 /// might be in same thread as a script that sets the reticle to invisible
176181 void WindowScriptingInterface::ensureReticleVisible() const {