4#ifndef QQUICKSHAPE_P_P_H
5#define QQUICKSHAPE_P_P_H
18#include <QtQuickShapes/private/qquickshapesglobal_p.h>
19#include <QtQuickShapes/private/qquickshape_p.h>
20#include <QtQuick/private/qquickitem_p.h>
21#include <QPainterPath>
24#include <QElapsedTimer>
26# include <private/qopenglcontext_p.h>
54 virtual void beginSync(
int totalCount,
bool *countChanged) = 0;
100 DirtyStrokeColor = 0x02,
101 DirtyStrokeWidth = 0x04,
102 DirtyFillColor = 0x08,
103 DirtyFillRule = 0x10,
106 DirtyFillGradient = 0x80,
114 void _q_fillGradientChanged();
175 size_t h =
seed +
v.spread;
176 for (
int i = 0;
i < 3 &&
i <
v.stops.size(); ++
i)
177 h +=
v.stops[
i].second.rgba();
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
virtual void setPath(int index, const QQuickPath *path)=0
virtual void setTriangulationScale(qreal)
virtual void beginSync(int totalCount, bool *countChanged)=0
virtual void setStrokeColor(int index, const QColor &color)=0
virtual void setStrokeStyle(int index, QQuickShapePath::StrokeStyle strokeStyle, qreal dashOffset, const QVector< qreal > &dashPattern)=0
virtual void setAsyncCallback(void(*)(void *), void *)
virtual Flags flags() const
virtual void setCapStyle(int index, QQuickShapePath::CapStyle capStyle)=0
virtual void setFillGradient(int index, QQuickShapeGradient *gradient)=0
virtual ~QQuickAbstractPathRenderer()
virtual void setFillColor(int index, const QColor &color)=0
virtual void setFillRule(int index, QQuickShapePath::FillRule fillRule)=0
virtual void setStrokeWidth(int index, qreal w)=0
virtual void endSync(bool async)=0
virtual void updateNode()=0
virtual void setJoinStyle(int index, QQuickShapePath::JoinStyle joinStyle, int miterLimit)=0
QSGTexture * get(const QQuickShapeGradientCacheKey &grad)
static QQuickShapeGradientCache * cacheForRhi(QRhi *rhi)
~QQuickShapeGradientCache()
QQuickShapeStrokeFillParams sfp
static QQuickShapePathPrivate * get(QQuickShapePath *p)
QQuickShape::RendererType rendererType
QVector< QQuickShapePath * > sp
QQuickShapePrivate()
Renders a path.
static QQuickShapePrivate * get(QQuickShape *item)
void setStatus(QQuickShape::Status newStatus)
void _q_shapePathChanged()
QQuickShape::Status status
QQuickAbstractPathRenderer * renderer
QQuickShape::RendererType preferredType
static void asyncShapeReady(void *data)
QQuickShape::ContainsMode containsMode
QQuickShape::RendererType selectRendererType()
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLsizei const GLfloat * v
[13]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
GLsizei const GLchar *const * path
size_t qHash(const QQuickShapeGradientCacheKey &v, size_t seed=0)
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
QQuickShapeGradient::SpreadMode spread
bool operator==(const QQuickShapeGradientCacheKey &other) const
QQuickShapeGradient::SpreadMode spread
QQuickShapeGradientCacheKey(const QGradientStops &stops, QQuickShapeGradient::SpreadMode spread)
QQuickShapePath::JoinStyle joinStyle
QQuickShapePath::FillRule fillRule
QVector< qreal > dashPattern
QQuickShapePath::CapStyle capStyle
QQuickShapePath::StrokeStyle strokeStyle
QQuickShapeGradient * fillGradient