1 #ifndef TTKDESKTOPSCREEN_H
2 #define TTKDESKTOPSCREEN_H
51 static QRect geometry();
55 static QRect screenGeometry(
int index = 0);
59 static QRect availableGeometry(
int index = 0);
68 static int currentIndex();
72 static QRect currentGeometry();
77 static void centerWidget(QWidget *widget);
82 static QPixmap grabWidget(QWidget *widget,
const QRect &rect);
86 static QPixmap grabWindow(
int x = 0,
int y = 0,
int w = -1,
int h = -1);
91 static int deviceDotsPerInch(
int index = 0);
95 static qreal devicePixelRatio(
int index = 0);
99 static qreal currentPixelRatio();
103 #endif // TTKDESKTOPSCREEN_H
#define TTK_MODULE_EXPORT
TTK::Direction m_direction
The class of the desktop screen.
The namespace of the application object.