Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -171,6 +171,11 @@ void WindowScriptingInterface::setPreviousBrowseAssetLocation(const QString& loc · 170 unmodified lines | |||
| 171 | Setting::Handle<QVariant>(LAST_BROWSE_ASSETS_LOCATION_SETTING).set(location); | 171 | Setting::Handle<QVariant>(LAST_BROWSE_ASSETS_LOCATION_SETTING).set(location); |
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | bool WindowScriptingInterface::isPointOnDesktopWindow(QVariant point) { | ||
| 175 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); | ||
| 176 | return offscreenUi->isPointOnDesktopWindow(point); | ||
| 177 | } | ||
| 178 | |||
| 174 | /// Makes sure that the reticle is visible, use this in blocking forms that require a reticle and | 179 | /// Makes sure that the reticle is visible, use this in blocking forms that require a reticle and |
| 175 | /// might be in same thread as a script that sets the reticle to invisible | 180 | /// might be in same thread as a script that sets the reticle to invisible |
| 176 | void WindowScriptingInterface::ensureReticleVisible() const { | 181 | void WindowScriptingInterface::ensureReticleVisible() const { |