27 lines · 725 B · C++
RawDownload
////  DesktopScriptingInterface.h//  interface/src/scripting////  Created by David Rowe on 25 Aug 2015.//  Copyright 2015 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #include "DesktopScriptingInterface.h" #include <QWindow>#include <QScreen> #include "Application.h"#include "MainWindow.h" int DesktopScriptingInterface::getWidth() {    QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize();    return size.width();}int DesktopScriptingInterface::getHeight() {    QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize();    return size.height();}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t