mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Utility function for screen geometry
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <QDialog>
|
||||
#include <QObject>
|
||||
#include <QEvent>
|
||||
#include <QScreen>
|
||||
#include <QPixmap>
|
||||
#include <QScopedPointer>
|
||||
#include <QString>
|
||||
@@ -244,6 +245,13 @@ namespace BlackGui
|
||||
//! Uses the high DPI support?
|
||||
static bool isUsingHighDpiScreenSupport();
|
||||
|
||||
//! Current screen
|
||||
static QScreen *currentScreen();
|
||||
|
||||
//! Current screen resolution
|
||||
//! \remark logical resolution, not physical resolution
|
||||
static QRect currentScreenGeometry();
|
||||
|
||||
//! Parse scale factor if any
|
||||
static double parseScaleFactor(int argc, char *argv[]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user