4#ifndef QQUICKPAINTEDITEM_P_H
5#define QQUICKPAINTEDITEM_P_H
7#include <QtQuick/qquickitem.h>
8#include <QtGui/qcolor.h>
17 Q_PROPERTY(
QSize contentsSize READ contentsSize WRITE setContentsSize NOTIFY contentsSizeChanged)
19 Q_PROPERTY(
qreal contentsScale READ contentsScale WRITE setContentsScale NOTIFY contentsScaleChanged)
21 Q_PROPERTY(
QSize textureSize READ textureSize WRITE setTextureSize NOTIFY textureSizeChanged)
34 InvertedYFramebufferObject
46 bool opaquePainting()
const;
47 void setOpaquePainting(
bool opaque);
49 bool antialiasing()
const;
50 void setAntialiasing(
bool enable);
53 void setMipmap(
bool enable);
55 PerformanceHints performanceHints()
const;
56 void setPerformanceHint(PerformanceHint
hint,
bool enabled =
true);
57 void setPerformanceHints(PerformanceHints hints);
59 QRectF contentsBoundingRect()
const;
61 QSize contentsSize()
const;
62 void setContentsSize(
const QSize &);
63 void resetContentsSize();
65 qreal contentsScale()
const;
66 void setContentsScale(
qreal);
68 QSize textureSize()
const;
72 void setFillColor(
const QColor&);
74 RenderTarget renderTarget()
const;
75 void setRenderTarget(RenderTarget
target);
79 bool isTextureProvider()
const override;
92 void releaseResources()
override;
96 void invalidateSceneGraph();
The QColor class provides colors based on RGB, HSV or CMYK values.
The QPainter class performs low-level painting on widgets and other paint devices.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
void contentsScaleChanged()
PerformanceHint
This enum describes flags that you can enable to improve rendering performance in QQuickPaintedItem.
virtual void paint(QPainter *painter)=0
This function, which is usually called by the QML Scene Graph, paints the contents of an item in loca...
void renderTargetChanged()
void textureSizeChanged()
RenderTarget
This enum describes QQuickPaintedItem's render targets.
void contentsSizeChanged()
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
The QSGTextureProvider class encapsulates texture based entities in QML.
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)