Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 9 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(); |
| @@ -39,6 +46,10 @@ QVariantMap DesktopScriptingInterface::getPresentationMode() { · 11 unmodified lines | ||
| 39 | 46 | return presentationModes; |
| 40 | 47 | } |
| 41 | 48 | |
| 49 | +QVariantMap DesktopScriptingInterface::getDockArea() { | |
| 50 | + return DOCK_AREA; | |
| 51 | +} | |
| 52 | + | |
| 42 | 53 | void DesktopScriptingInterface::setHUDAlpha(float alpha) { |
| 43 | 54 | qApp->getApplicationCompositor().setAlpha(alpha); |
| 44 | 55 | } |