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
qquickcontext2dtile_p.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 QQUICKCONTEXT2DTILE_P_H
5#define QQUICKCONTEXT2DTILE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qtquickglobal_p.h>
19
20QT_REQUIRE_CONFIG(quick_canvas);
21
22#include "qquickcontext2d_p.h"
24
27
29{
30public:
32 virtual ~QQuickContext2DTile();
33
34 bool dirty() const {return m_dirty;}
35 void markDirty(bool dirty) {m_dirty = dirty;}
36
37 QRect rect() const {return m_rect;}
38
39 virtual void setRect(const QRect& r) = 0;
40 virtual QPainter* createPainter(bool smooth, bool antialiasing);
41 virtual void drawFinished() {}
42
43protected:
44 virtual void aboutToDraw() {}
49};
50
52{
53public:
56 void setRect(const QRect& r) override;
57 const QImage& image() const {return m_image;}
58private:
59 QImage m_image;
60};
62
63#endif // QQUICKCONTEXT2DTILE_P_H
\inmodule QtGui
Definition qimage.h:37
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
const QImage & image() const
void setRect(const QRect &r) override
virtual QPainter * createPainter(bool smooth, bool antialiasing)
virtual void setRect(const QRect &r)=0
\inmodule QtCore\reentrant
Definition qrect.h:30
Combined button and popup list for selecting options.
GLboolean r
[2]
#define QT_REQUIRE_CONFIG(feature)
unsigned int uint
Definition qtypes.h:34