Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpaintdevicewindow.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPAINTDEVICEWINDOW_H
5#define QPAINTDEVICEWINDOW_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtGui/QWindow>
9#include <QtGui/QPaintDevice>
10
12
14class QPaintEvent;
15
16class Q_GUI_EXPORT QPaintDeviceWindow : public QWindow, public QPaintDevice
17{
19 Q_DECLARE_PRIVATE(QPaintDeviceWindow)
20
21public:
22 void update(const QRect &rect);
23 void update(const QRegion &region);
24
25 using QWindow::width;
26 using QWindow::height;
27 using QWindow::devicePixelRatio;
28
29public Q_SLOTS:
30 void update();
31
32protected:
33 void exposeEvent(QExposeEvent *) override;
34 void paintEvent(QPaintEvent *event) override;
35
36 int metric(PaintDeviceMetric metric) const override;
37 bool event(QEvent *event) override;
38
40
41private:
42 QPaintEngine *paintEngine() const override;
43 Q_DISABLE_COPY(QPaintDeviceWindow)
44};
45
47
48#endif
\inmodule QtCore
Definition qcoreevent.h:45
The QExposeEvent class contains event parameters for expose events. \inmodule QtGui.
Definition qevent.h:515
\inmodule QtGui
The QPaintEvent class contains event parameters for paint events.
Definition qevent.h:486
\inmodule QtCore\reentrant
Definition qrect.h:30
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtGui
Definition qwindow.h:63
int width
the width of the window's geometry
Definition qwindow.h:82
int height
the height of the window's geometry
Definition qwindow.h:83
rect
[4]
Combined button and popup list for selecting options.
struct _cl_event * event
#define Q_OBJECT
#define Q_SLOTS