summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformscreen_lite.h
blob: ef90dee27daf34d46dd125611678ee61400d70b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef QPLATFORMSCREEN_H
#define QPLATFORMSCREEN_H

#include <QtCore/qrect.h>
#include <QtGui/qimage.h>

QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Gui)

class Q_GUI_EXPORT QPlatformScreen
{
public:
    virtual ~QPlatformScreen() { }

    virtual QRect geometry() const = 0;
    virtual QRect availableGeometry() const {return geometry();};
    virtual int depth() const = 0;
    virtual QImage::Format format() const = 0;
    virtual QSize physicalSize() const = 0;
    virtual void setDirty(const QRect &) {}
    virtual QWidget *topLevelAt(const QPoint &point) const;
};

QT_END_NAMESPACE

QT_END_HEADER

#endif // QPLATFORMSCREEN_H