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

#include <qsvgstyle_p.h>

+ Inheritance diagram for QSvgGradientStyle:
+ Collaboration diagram for QSvgGradientStyle:

Public Member Functions

 QSvgGradientStyle (QGradient *grad)
 
 ~QSvgGradientStyle ()
 
Type type () const override
 
void setStopLink (const QString &link, QSvgTinyDocument *doc)
 
QString stopLink () const
 
void resolveStops ()
 
void resolveStops_helper (QStringList *visited)
 
void setTransform (const QTransform &transform)
 
QTransform qtransform () const
 
QGradientqgradient () const
 
bool gradientStopsSet () const
 
void setGradientStopsSet (bool set)
 
QBrush brush (QPainter *, QSvgExtraStates &) override
 
- Public Member Functions inherited from QSvgFillStyleProperty
virtual QBrush brush (QPainter *p, QSvgExtraStates &states)=0
 
void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states) override
 
void revert (QPainter *p, QSvgExtraStates &states) override
 
- Public Member Functions inherited from QSvgStyleProperty
virtual ~QSvgStyleProperty ()
 
virtual void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states)=0
 
virtual void revert (QPainter *p, QSvgExtraStates &states)=0
 
virtual Type type () const =0
 
- Public Member Functions inherited from QSvgRefCounted
 QSvgRefCounted ()
 
virtual ~QSvgRefCounted ()
 
void ref ()
 
void deref ()
 

Additional Inherited Members

- Public Types inherited from QSvgStyleProperty
enum  Type {
  QUALITY , FILL , VIEWPORT_FILL , FONT ,
  STROKE , SOLID_COLOR , GRADIENT , TRANSFORM ,
  ANIMATE_TRANSFORM , ANIMATE_COLOR , OPACITY , COMP_OP
}
 

Detailed Description

Definition at line 545 of file qsvgstyle_p.h.

Constructor & Destructor Documentation

◆ QSvgGradientStyle()

QSvgGradientStyle::QSvgGradientStyle ( QGradient grad)

Definition at line 382 of file qsvgstyle.cpp.

◆ ~QSvgGradientStyle()

QSvgGradientStyle::~QSvgGradientStyle ( )
inline

Definition at line 549 of file qsvgstyle_p.h.

Member Function Documentation

◆ brush()

QBrush QSvgGradientStyle::brush ( QPainter ,
QSvgExtraStates  
)
overridevirtual

Implements QSvgFillStyleProperty.

Definition at line 387 of file qsvgstyle.cpp.

References QString::isEmpty(), QTransform::isIdentity(), resolveStops(), and QGradient::setStops().

+ Here is the call graph for this function:

◆ gradientStopsSet()

bool QSvgGradientStyle::gradientStopsSet ( ) const
inline

Definition at line 568 of file qsvgstyle_p.h.

Referenced by parseBaseGradient(), parseStopNode(), and resolveStops_helper().

+ Here is the caller graph for this function:

◆ qgradient()

QGradient * QSvgGradientStyle::qgradient ( ) const
inline

Definition at line 563 of file qsvgstyle_p.h.

Referenced by parseBaseGradient(), parseStopNode(), and resolveStops_helper().

+ Here is the caller graph for this function:

◆ qtransform()

QTransform QSvgGradientStyle::qtransform ( ) const
inline

Definition at line 558 of file qsvgstyle_p.h.

Referenced by parseBaseGradient().

+ Here is the caller graph for this function:

◆ resolveStops()

void QSvgGradientStyle::resolveStops ( )

Definition at line 919 of file qsvgstyle.cpp.

References resolveStops_helper().

Referenced by brush().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveStops_helper()

void QSvgGradientStyle::resolveStops_helper ( QStringList visited)

Definition at line 925 of file qsvgstyle.cpp.

References QSvgStyleProperty::GRADIENT, gradientStopsSet(), QString::isEmpty(), qgradient(), qPrintable, qWarning, resolveStops_helper(), QGradient::setStops(), QGradient::stops(), QSvgNode::styleProperty(), and QSvgStyleProperty::type().

Referenced by resolveStops(), and resolveStops_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setGradientStopsSet()

void QSvgGradientStyle::setGradientStopsSet ( bool  set)
inline

Definition at line 573 of file qsvgstyle_p.h.

References set.

Referenced by parseBaseGradient(), and parseStopNode().

+ Here is the caller graph for this function:

◆ setStopLink()

void QSvgGradientStyle::setStopLink ( const QString link,
QSvgTinyDocument doc 
)

Definition at line 913 of file qsvgstyle.cpp.

Referenced by parseBaseGradient().

+ Here is the caller graph for this function:

◆ setTransform()

void QSvgGradientStyle::setTransform ( const QTransform transform)

Definition at line 408 of file qsvgstyle.cpp.

Referenced by parseBaseGradient().

+ Here is the caller graph for this function:

◆ stopLink()

QString QSvgGradientStyle::stopLink ( ) const
inline

Definition at line 553 of file qsvgstyle_p.h.

Referenced by parseBaseGradient().

+ Here is the caller graph for this function:

◆ type()

QSvgStyleProperty::Type QSvgGradientStyle::type ( ) const
overridevirtual

Implements QSvgStyleProperty.

Definition at line 459 of file qsvgstyle.cpp.

References QSvgStyleProperty::GRADIENT.


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