Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQuickShapeSoftwareRenderer Class Reference

#include <qquickshapesoftwarerenderer_p.h>

+ Inheritance diagram for QQuickShapeSoftwareRenderer:
+ Collaboration diagram for QQuickShapeSoftwareRenderer:

Public Types

enum  Dirty {
  DirtyPath = 0x01 , DirtyPen = 0x02 , DirtyFillRule = 0x04 , DirtyBrush = 0x08 ,
  DirtyList = 0x10
}
 
- Public Types inherited from QQuickAbstractPathRenderer
enum  Flag { SupportsAsync = 0x01 }
 
enum  FillGradientType { NoGradient = 0 , LinearGradient , RadialGradient , ConicalGradient }
 

Public Member Functions

void beginSync (int totalCount, bool *countChanged) override
 
void setPath (int index, const QQuickPath *path) override
 
void setStrokeColor (int index, const QColor &color) override
 
void setStrokeWidth (int index, qreal w) override
 
void setFillColor (int index, const QColor &color) override
 
void setFillRule (int index, QQuickShapePath::FillRule fillRule) override
 
void setJoinStyle (int index, QQuickShapePath::JoinStyle joinStyle, int miterLimit) override
 
void setCapStyle (int index, QQuickShapePath::CapStyle capStyle) override
 
void setStrokeStyle (int index, QQuickShapePath::StrokeStyle strokeStyle, qreal dashOffset, const QVector< qreal > &dashPattern) override
 
void setFillGradient (int index, QQuickShapeGradient *gradient) override
 
void endSync (bool async) override
 
void updateNode () override
 
void setNode (QQuickShapeSoftwareRenderNode *node)
 
- Public Member Functions inherited from QQuickAbstractPathRenderer
virtual ~QQuickAbstractPathRenderer ()
 
virtual void beginSync (int totalCount, bool *countChanged)=0
 
virtual void endSync (bool async)=0
 
virtual void setAsyncCallback (void(*)(void *), void *)
 
virtual Flags flags () const
 
virtual void setPath (int index, const QQuickPath *path)=0
 
virtual void setStrokeColor (int index, const QColor &color)=0
 
virtual void setStrokeWidth (int index, qreal w)=0
 
virtual void setFillColor (int index, const QColor &color)=0
 
virtual void setFillRule (int index, QQuickShapePath::FillRule fillRule)=0
 
virtual void setJoinStyle (int index, QQuickShapePath::JoinStyle joinStyle, int miterLimit)=0
 
virtual void setCapStyle (int index, QQuickShapePath::CapStyle capStyle)=0
 
virtual void setStrokeStyle (int index, QQuickShapePath::StrokeStyle strokeStyle, qreal dashOffset, const QVector< qreal > &dashPattern)=0
 
virtual void setFillGradient (int index, QQuickShapeGradient *gradient)=0
 
virtual void setTriangulationScale (qreal)
 
virtual void updateNode ()=0
 

Detailed Description

Definition at line 28 of file qquickshapesoftwarerenderer_p.h.

Member Enumeration Documentation

◆ Dirty

Enumerator
DirtyPath 
DirtyPen 
DirtyFillRule 
DirtyBrush 
DirtyList 

Definition at line 31 of file qquickshapesoftwarerenderer_p.h.

Member Function Documentation

◆ beginSync()

QT_BEGIN_NAMESPACE void QQuickShapeSoftwareRenderer::beginSync ( int  totalCount,
bool *  countChanged 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 9 of file qquickshapesoftwarerenderer.cpp.

References DirtyList.

◆ endSync()

void QQuickShapeSoftwareRenderer::endSync ( bool  async)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 141 of file qquickshapesoftwarerenderer.cpp.

◆ setCapStyle()

void QQuickShapeSoftwareRenderer::setCapStyle ( int  index,
QQuickShapePath::CapStyle  capStyle 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 72 of file qquickshapesoftwarerenderer.cpp.

References d, and DirtyPen.

◆ setFillColor()

void QQuickShapeSoftwareRenderer::setFillColor ( int  index,
const QColor color 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 46 of file qquickshapesoftwarerenderer.cpp.

References d, and DirtyBrush.

◆ setFillGradient()

void QQuickShapeSoftwareRenderer::setFillGradient ( int  index,
QQuickShapeGradient gradient 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 118 of file qquickshapesoftwarerenderer.cpp.

References d, DirtyBrush, and setupPainterGradient().

+ Here is the call graph for this function:

◆ setFillRule()

void QQuickShapeSoftwareRenderer::setFillRule ( int  index,
QQuickShapePath::FillRule  fillRule 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 55 of file qquickshapesoftwarerenderer.cpp.

References d, and DirtyFillRule.

◆ setJoinStyle()

void QQuickShapeSoftwareRenderer::setJoinStyle ( int  index,
QQuickShapePath::JoinStyle  joinStyle,
int  miterLimit 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 63 of file qquickshapesoftwarerenderer.cpp.

References d, and DirtyPen.

◆ setNode()

void QQuickShapeSoftwareRenderer::setNode ( QQuickShapeSoftwareRenderNode node)

Definition at line 145 of file qquickshapesoftwarerenderer.cpp.

References DirtyList.

◆ setPath()

void QQuickShapeSoftwareRenderer::setPath ( int  index,
const QQuickPath path 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 20 of file qquickshapesoftwarerenderer.cpp.

References d, and DirtyPath.

◆ setStrokeColor()

void QQuickShapeSoftwareRenderer::setStrokeColor ( int  index,
const QColor color 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 28 of file qquickshapesoftwarerenderer.cpp.

References d, and DirtyPen.

◆ setStrokeStyle()

void QQuickShapeSoftwareRenderer::setStrokeStyle ( int  index,
QQuickShapePath::StrokeStyle  strokeStyle,
qreal  dashOffset,
const QVector< qreal > &  dashPattern 
)
overridevirtual

◆ setStrokeWidth()

void QQuickShapeSoftwareRenderer::setStrokeWidth ( int  index,
qreal  w 
)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 36 of file qquickshapesoftwarerenderer.cpp.

References d, and DirtyPen.

◆ updateNode()

void QQuickShapeSoftwareRenderer::updateNode ( )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 151 of file qquickshapesoftwarerenderer.cpp.

References QRectF::adjust(), DirtyBrush, DirtyFillRule, DirtyList, QSGNode::DirtyMaterial, DirtyPath, DirtyPen, i, QSGNode::markDirty(), and qMax().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: