# Conflicts: # interface/src/scripting/DesktopScriptingInterface.h # interface/src/ui/InteractiveWindow.h
Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 41 files). Show all
Unified · Split
| @@ -22,6 +22,13 @@ · 21 unmodified lines | ||
| 22 | 22 | #include <DependencyManager.h> |
| 23 | 23 | #include <OffscreenUi.h> |
| 24 | 24 | |
| 25 | +static const QVariantMap DOCK_AREA { | |
| 26 | + { "TOP", DockArea::TOP }, | |
| 27 | + { "BOTTOM", DockArea::BOTTOM }, | |
| 28 | + { "LEFT", DockArea::LEFT }, | |
| 29 | + { "RIGHT", DockArea::RIGHT } | |
| 30 | +}; | |
| 31 | + | |
| 25 | 32 | int DesktopScriptingInterface::getWidth() { |
| 26 | 33 | QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize(); |
| 27 | 34 | return size.width(); |
| @@ -46,6 +53,10 @@ QVariantMap DesktopScriptingInterface::getPresentationMode() { · 18 unmodified lines | ||
| 46 | 53 | return presentationModes; |
| 47 | 54 | } |
| 48 | 55 | |
| 56 | +QVariantMap DesktopScriptingInterface::getDockArea() { | |
| 57 | + return DOCK_AREA; | |
| 58 | +} | |
| 59 | + | |
| 49 | 60 | void DesktopScriptingInterface::setHUDAlpha(float alpha) { |
| 50 | 61 | qApp->getApplicationCompositor().setAlpha(alpha); |
| 51 | 62 | } |