Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 *, const QSvgNode *, QSvgExtraStates &) override
 
- Public Member Functions inherited from QSvgPaintStyleProperty
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 ()
 
bool isDefault () const
 
- 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 , PATTERN ,
  TRANSFORM , ANIMATE_TRANSFORM , ANIMATE_COLOR , OPACITY ,
  COMP_OP
}
 

Detailed Description

Definition at line 554 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 558 of file qsvgstyle_p.h.

Member Function Documentation

◆ brush()

QBrush QSvgGradientStyle::brush ( QPainter * ,
const QSvgNode * ,
QSvgExtraStates &  )
overridevirtual

Implements QSvgPaintStyleProperty.

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 577 of file qsvgstyle_p.h.

Referenced by parseStopNode().

+ Here is the caller graph for this function:

◆ qgradient()

QGradient * QSvgGradientStyle::qgradient ( ) const
inline

Definition at line 572 of file qsvgstyle_p.h.

Referenced by parseStopNode().

+ Here is the caller graph for this function:

◆ qtransform()

QTransform QSvgGradientStyle::qtransform ( ) const
inline

Definition at line 567 of file qsvgstyle_p.h.

◆ resolveStops()

void QSvgGradientStyle::resolveStops ( )

Definition at line 936 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 942 of file qsvgstyle.cpp.

References QSvgStyleProperty::GRADIENT, QString::isEmpty(), qPrintable, qWarning, resolveStops_helper(), QGradient::setStops(), 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 582 of file qsvgstyle_p.h.

References set.

Referenced by parseStopNode().

+ Here is the caller graph for this function:

◆ setStopLink()

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

Definition at line 930 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.

◆ stopLink()

QString QSvgGradientStyle::stopLink ( ) const
inline

Definition at line 562 of file qsvgstyle_p.h.

◆ type()

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

Implements QSvgStyleProperty.

Definition at line 473 of file qsvgstyle.cpp.

References QSvgStyleProperty::GRADIENT.


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