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

#include <qsvgstyle_p.h>

+ Inheritance diagram for QSvgAnimateColor:
+ Collaboration diagram for QSvgAnimateColor:

Public Member Functions

 QSvgAnimateColor (int startMs, int endMs, int by=0)
 
void setArgs (bool fill, const QList< QColor > &colors)
 
void setFreeze (bool freeze)
 
void setRepeatCount (qreal repeatCount)
 
void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states) override
 
void revert (QPainter *p, QSvgExtraStates &states) override
 
Type type () const 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 680 of file qsvgstyle_p.h.

Constructor & Destructor Documentation

◆ QSvgAnimateColor()

QSvgAnimateColor::QSvgAnimateColor ( int  startMs,
int  endMs,
int  by = 0 
)

Definition at line 790 of file qsvgstyle.cpp.

References Q_UNUSED.

Member Function Documentation

◆ apply()

void QSvgAnimateColor::apply ( QPainter p,
const QSvgNode node,
QSvgExtraStates states 
)
overridevirtual

Implements QSvgStyleProperty.

Definition at line 819 of file qsvgstyle.cpp.

References QSvgTinyDocument::currentElapsed(), QSvgNode::document(), qCeil(), qFloor(), red, QPen::setColor(), and QList< T >::size().

Referenced by QSvgStyle::apply().

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

◆ revert()

void QSvgAnimateColor::revert ( QPainter p,
QSvgExtraStates states 
)
overridevirtual

Implements QSvgStyleProperty.

Definition at line 877 of file qsvgstyle.cpp.

Referenced by QSvgStyle::revert().

+ Here is the caller graph for this function:

◆ setArgs()

void QSvgAnimateColor::setArgs ( bool  fill,
const QList< QColor > &  colors 
)

Definition at line 802 of file qsvgstyle.cpp.

References colors, and fill().

Referenced by parseAnimateColorNode().

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

◆ setFreeze()

void QSvgAnimateColor::setFreeze ( bool  freeze)

Definition at line 809 of file qsvgstyle.cpp.

Referenced by parseAnimateColorNode().

+ Here is the caller graph for this function:

◆ setRepeatCount()

void QSvgAnimateColor::setRepeatCount ( qreal  repeatCount)

Definition at line 814 of file qsvgstyle.cpp.

Referenced by parseAnimateColorNode().

+ Here is the caller graph for this function:

◆ type()

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

Implements QSvgStyleProperty.

Definition at line 886 of file qsvgstyle.cpp.

References QSvgStyleProperty::ANIMATE_COLOR.


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