Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickcanvascontext_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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKCANVASCONTEXT_P_H
6#define QQUICKCANVASCONTEXT_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qtquickglobal_p.h>
20
22
23#include <QtQuick/qquickitem.h>
24#include <QtQml/private/qv4staticvalue_p.h>
25
26QT_BEGIN_NAMESPACE
27
28namespace QV4 {
29 struct ExecutionEngine;
30}
31
33class QSGLayer;
34
36{
38
39public:
42
43 virtual QStringList contextNames() const = 0;
44
45 // Init (ignore options if necessary)
46 virtual void init(QQuickCanvasItem *canvasItem, const QVariantMap &args) = 0;
47
48 virtual void prepare(const QSize& canvasSize, const QSize& tileSize, const QRect& canvasWindow, const QRect& dirtyRect, bool smooth, bool antialiasing);
49 virtual void flush();
50
51 virtual QV4::ExecutionEngine *v4Engine() const = 0;
52 virtual void setV4Engine(QV4::ExecutionEngine *engine) = 0;
53 virtual QV4::ReturnedValue v4value() const = 0;
54
55 virtual QImage toImage(const QRectF& bounds) = 0;
56
59};
60
61QT_END_NAMESPACE
62
63#endif //QQUICKCANVASCONTEXT_P_H
virtual void setV4Engine(QV4::ExecutionEngine *engine)=0
virtual QV4::ReturnedValue v4value() const =0
virtual QV4::ExecutionEngine * v4Engine() const =0
virtual QImage toImage(const QRectF &bounds)=0
virtual QStringList contextNames() const =0
virtual void prepare(const QSize &canvasSize, const QSize &tileSize, const QRect &canvasWindow, const QRect &dirtyRect, bool smooth, bool antialiasing)
virtual void init(QQuickCanvasItem *canvasItem, const QVariantMap &args)=0
Definition qjsvalue.h:23
QT_REQUIRE_CONFIG(quick_canvas)