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 FINAL)
18 Q_PROPERTY(
QColor fillColor READ fillColor WRITE setFillColor NOTIFY fillColorChanged)
19 Q_PROPERTY(
qreal contentsScale READ contentsScale WRITE setContentsScale NOTIFY contentsScaleChanged FINAL)
20 Q_PROPERTY(
RenderTarget renderTarget READ renderTarget WRITE setRenderTarget NOTIFY renderTargetChanged FINAL)
21 Q_PROPERTY(
QSize textureSize READ textureSize WRITE setTextureSize NOTIFY textureSizeChanged FINAL)
25 QML_UNCREATABLE(
"Cannot create instance of abstract class PaintedItem.")
34 InvertedYFramebufferObject
46 bool opaquePainting()
const;
47 void setOpaquePainting(
bool opaque);
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);
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}.
virtual QSGNode * updatePaintNode(QSGNode *, UpdatePaintNodeData *)
Called on the render thread when it is time to sync the state of the item with the scene graph.
void setAntialiasing(bool)
virtual QSGTextureProvider * textureProvider() const
Returns the texture provider for an item.
virtual void itemChange(ItemChange, const ItemChangeData &)
Called when change occurs for this item.
bool antialiasing
\qmlproperty bool QtQuick::Item::antialiasing
virtual void releaseResources()
This function is called when an item should release graphics resources which are not already managed ...
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
void update()
Schedules a call to updatePaintNode() for this item.
virtual bool isTextureProvider() const
Returns true if this item is a texture provider.
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)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent