mirror of
https://github.com/overte-org/overte.git
synced 2025-05-12 09:49:49 +02:00
27 lines
725 B
C++
27 lines
725 B
C++
//
|
|
// 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();
|
|
}
|