4#ifndef QQUICKCONTEXT2D_P_H
5#define QQUICKCONTEXT2D_P_H
18#include <private/qtquickglobal_p.h>
22#include <QtQml/qqml.h>
23#include <QtQml/qqmlcomponent.h>
24#include <private/qquickcanvascontext_p.h>
25#include <private/qquickcanvasitem_p.h>
26#include <QtGui/qpainter.h>
27#include <QtGui/qpainterpath.h>
28#include <QtGui/qoffscreensurface.h>
29#include <QtCore/qstring.h>
30#include <QtCore/qstack.h>
31#include <QtCore/qqueue.h>
32#include <QtCore/QWaitCondition>
34#include <private/qv4persistent_p.h>
38#ifdef QQUICKCONTEXT2D_DEBUG
39#include <QElapsedTimer>
45 struct ExecutionEngine;
160 void flush()
override;
The QColor class provides colors based on RGB, HSV or CMYK values.
void setPixelSize(int)
Sets the font size to pixelSize pixels, with a maxiumum size of an unsigned 16-bit integer.
QObject * parent() const
Returns a pointer to the parent object.
The QPainter class performs low-level painting on widgets and other paint devices.
CompositionMode
Defines the modes supported for digital image compositing.
\inmodule QtCore\reentrant
QPainterPath createTextGlyphs(qreal x, qreal y, const QString &text)
bool isPointInPath(qreal x, qreal y) const
void arcTo(qreal x1, qreal y1, qreal x2, qreal y2, qreal radius)
QV4::PersistentValue m_v4path
void translate(qreal x, qreal y)
QQuickContext2DTexture * texture() const
QV4::ExecutionEngine * v4Engine() const override
void strokeRect(qreal x, qreal y, qreal w, qreal h)
QQueue< QQuickContext2DCommandBuffer * > m_bufferQueue
QV4::ExecutionEngine * m_v4engine
QV4::PersistentValue m_fillStyle
QV4::PersistentValue m_strokeStyle
QQuickCanvasItem * canvas() const
QV4::ReturnedValue v4value() const override
void setTransform(qreal a, qreal b, qreal c, qreal d, qreal e, qreal f)
QImage toImage(const QRectF &bounds) override
QSurface * surface() const
void arc(qreal x, qreal y, qreal radius, qreal startAngle, qreal endAngle, bool anticlockwise)
QScopedPointer< QOffscreenSurface > m_surface
QStringList contextNames() const override
void setGrabbedImage(const QImage &grab)
void lineTo(qreal x, qreal y)
void init(QQuickCanvasItem *canvasItem, const QVariantMap &args) override
QQuickContext2DCommandBuffer * buffer() const
void bezierCurveTo(qreal cp1x, qreal cp1y, qreal cp2x, qreal cp2y, qreal x, qreal y)
void prepare(const QSize &canvasSize, const QSize &tileSize, const QRect &canvasWindow, const QRect &dirtyRect, bool smooth, bool antialiasing) override
QQuickContext2DTexture * m_texture
@ GlobalCompositeOperation
QQuickCanvasItem * m_canvas
void quadraticCurveTo(qreal cpx, qreal cpy, qreal x, qreal y)
QQuickCanvasItem::RenderStrategy m_renderStrategy
void drawText(const QString &text, qreal x, qreal y, bool fill)
void roundedRect(qreal x, qreal y, qreal w, qreal h, qreal xr, qreal yr)
QQuickCanvasItem::RenderTarget m_renderTarget
QQmlRefPointer< QQuickCanvasPixmap > createPixmap(const QUrl &url, QSizeF sourceSize=QSizeF())
void setV4Engine(QV4::ExecutionEngine *eng) override
void shear(qreal h, qreal v)
QQuickContext2DCommandBuffer * m_buffer
void clearRect(qreal x, qreal y, qreal w, qreal h)
void addArcTo(const QPointF &p1, const QPointF &p2, qreal radius)
QV4::PersistentValue m_v4value
void moveTo(qreal x, qreal y)
void fillRect(qreal x, qreal y, qreal w, qreal h)
QStack< QQuickContext2D::State > m_stateStack
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
T * data() const noexcept
Returns the value of the pointer referenced by this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
static QT_BEGIN_NAMESPACE const int tileSize
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint GLfloat GLfloat GLfloat GLfloat y1
GLuint GLfloat GLfloat GLfloat x1
GLfloat GLfloat GLfloat GLfloat h
GLuint GLenum GLenum transform
GLfixed GLfixed GLfixed y2
GLenum GLenum GLenum GLenum GLenum scale
#define QML_DECLARE_TYPE(TYPE)
constexpr QRgb qRgba(int r, int g, int b, int a)
#define QT_REQUIRE_CONFIG(feature)
QUrl url("example.com")
[constructor-url-reference]
QGraphicsEllipseItem * ellipse
bool strokePatternRepeatY
Qt::PenJoinStyle lineJoin
QPainter::CompositionMode globalCompositeOperation
QQuickContext2D::TextAlignType textAlign
QQuickContext2D::TextBaseLineType textBaseline
bool strokePatternRepeatX
QVector< qreal > lineDash