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
qsgopenvgpainternode.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 QSGOPENVGPAINTERNODE_H
5#define QSGOPENVGPAINTERNODE_H
6
7#include <private/qsgadaptationlayer_p.h>
8#include <QtQuick/QQuickPaintedItem>
10
12
14
16{
17public:
20
22 void setSize(const QSize &size) override;
23 void setDirty(const QRect &dirtyRect) override;
24 void setOpaquePainting(bool opaque) override;
25 void setLinearFiltering(bool linearFiltering) override;
26 void setMipmapping(bool mipmapping) override;
27 void setSmoothPainting(bool s) override;
28 void setFillColor(const QColor &c) override;
29 void setContentsScale(qreal s) override;
30 void setFastFBOResizing(bool dynamic) override;
31 void setTextureSize(const QSize &size) override;
32 QImage toImage() const override;
33 void update() override;
34 QSGTexture *texture() const override;
35
36 void render() override;
37 void paint();
38
39private:
40 QQuickPaintedItem::RenderTarget m_preferredRenderTarget;
41
42 QQuickPaintedItem *m_item;
43 QSGOpenVGTexture *m_texture;
44 QImage m_image;
45
46 QSize m_size;
47 bool m_dirtyContents;
48 QRect m_dirtyRect;
49 bool m_opaquePainting;
50 bool m_linear_filtering;
51 bool m_smoothPainting;
52 QColor m_fillColor;
53 qreal m_contentsScale;
54 QSize m_textureSize;
55
56 bool m_dirtyGeometry;
57};
58
60
61#endif // QSGOPENVGPAINTERNODE_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtGui
Definition qimage.h:37
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
RenderTarget
This enum describes QQuickPaintedItem's render targets.
\inmodule QtCore\reentrant
Definition qrect.h:30
void setTextureSize(const QSize &size) override
QSGTexture * texture() const override
void setFillColor(const QColor &c) override
void setOpaquePainting(bool opaque) override
void setDirty(const QRect &dirtyRect) override
void setMipmapping(bool mipmapping) override
void setSmoothPainting(bool s) override
void setPreferredRenderTarget(QQuickPaintedItem::RenderTarget target) override
void setLinearFiltering(bool linearFiltering) override
void setContentsScale(qreal s) override
QImage toImage() const override
void setSize(const QSize &size) override
QSGOpenVGPainterNode(QQuickPaintedItem *item)
void setFastFBOResizing(bool dynamic) override
\inmodule QtQuick
Definition qsgtexture.h:20
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum target
GLdouble s
[6]
Definition qopenglext.h:235
const GLubyte * c
double qreal
Definition qtypes.h:187
QGraphicsItem * item