Plasma
Plasma::Animation Class Reference
Abstract representation of a single animation. More...
#include <animation.h>

Public Member Functions | |
| Animation (QObject *parent=0) | |
| virtual | ~Animation ()=0 |
| QAbstractAnimation * | toQAbstractAnimation (QObject *parent=0) |
Protected Member Functions | |
| int | duration () const |
| virtual QAbstractAnimation * | render (QObject *parent=0)=0 |
| virtual void | setDuration (int duration=250) |
Properties | |
| int | duration |
Detailed Description
Abstract representation of a single animation.
- Since:
- 4.4
Definition at line 44 of file animation.h.
Constructor & Destructor Documentation
| Plasma::Animation::Animation | ( | QObject * | parent = 0 |
) | [explicit] |
Definition at line 42 of file animation.cpp.
| Plasma::Animation::~Animation | ( | ) | [pure virtual] |
Definition at line 49 of file animation.cpp.
Member Function Documentation
| int Plasma::Animation::duration | ( | ) | const [protected] |
Get the animation duration.
- Returns:
- duration in ms.
| virtual QAbstractAnimation* Plasma::Animation::render | ( | QObject * | parent = 0 |
) | [protected, pure virtual] |
Each individual class must override this function to place their main functionality.
This function must take the values from the constructor, do the appropriate calculations, and return a corresponding QPropertyAnimation initialized with the given parent.
Implemented in Plasma::RotationStackedAnimation.
| void Plasma::Animation::setDuration | ( | int | duration = 250 |
) | [protected, virtual] |
Change the animation duration.
Default is 1000ms.
- duration The new duration of the animation.
Definition at line 54 of file animation.cpp.
| QAbstractAnimation * Plasma::Animation::toQAbstractAnimation | ( | QObject * | parent = 0 |
) | [virtual] |
Take the animation object and turn it into a QPropertyAnimation.
Returns NULL on error. This function just does some boilerplate checking and then calls render().
Implements Plasma::AbstractAnimation.
Definition at line 59 of file animation.cpp.
Property Documentation
int Plasma::Animation::duration [read, write] |
Definition at line 48 of file animation.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference