QtGui/qdesktopwidget.h Source File
Go to the documentation of this file.
42 #ifndef QDESKTOPWIDGET_H
43 #define QDESKTOPWIDGET_H
54 class QDesktopWidgetPrivate;
60 Q_PROPERTY(
int screenCount READ screenCount NOTIFY screenCountChanged)
66 bool isVirtualDesktop() const;
68 int numScreens() const;
69 int screenCount() const;
70 int primaryScreen() const;
72 int screenNumber(const QWidget *widget = 0) const;
73 int screenNumber(const
QPoint &) const;
77 const
QRect screenGeometry(
int screen = -1) const;
78 const
QRect screenGeometry(const QWidget *widget) const;
80 {
return screenGeometry(screenNumber(point)); }
82 const QRect availableGeometry(
int screen = -1)
const;
83 const QRect availableGeometry(
const QWidget *widget)
const;
85 {
return availableGeometry(screenNumber(point)); }
89 void workAreaResized(
int);
90 void screenCountChanged(
int);
99 friend class QApplication;
100 friend class QApplicationPrivate;
104 {
return numScreens(); }
110 #endif // QDESKTOPWIDGET_H
#define QT_BEGIN_NAMESPACE