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
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 ()
 
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 706 of file qsvgstyle_p.h.

Constructor & Destructor Documentation

◆ QSvgAnimateColor()

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

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

References QSvgTinyDocument::currentElapsed(), QSvgNode::document(), qCeil(), qFloor(), red, QBrush::setColor(), 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 894 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 819 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 826 of file qsvgstyle.cpp.

Referenced by parseAnimateColorNode().

+ Here is the caller graph for this function:

◆ setRepeatCount()

void QSvgAnimateColor::setRepeatCount ( qreal repeatCount)

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

References QSvgStyleProperty::ANIMATE_COLOR.


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