Plasma
Plasma::AnimationGroup Class Reference
A group of Animations and / or AnimationGroups. More...
#include <animationgroup.h>

Public Slots | |
| Q_INVOKABLE int | add (Plasma::AbstractAnimation *elem) |
| Q_INVOKABLE AbstractAnimation * | at (int id) const |
| Q_INVOKABLE void | remove (int id) |
| Q_INVOKABLE void | remove (Plasma::AbstractAnimation *elem) |
Public Member Functions | |
| AnimationGroup (QObject *parent=0) | |
| virtual | ~AnimationGroup () |
| bool | isParallel () const |
| void | setParallel (bool parallelness) |
| QAnimationGroup * | toQAbstractAnimation (QObject *parent=0) |
Properties | |
| bool | parallel |
Detailed Description
A group of Animations and / or AnimationGroups.
- Since:
- 4.4
Definition at line 45 of file animationgroup.h.
Constructor & Destructor Documentation
| Plasma::AnimationGroup::AnimationGroup | ( | QObject * | parent = 0 |
) | [explicit] |
Definition at line 43 of file animationgroup.cpp.
| Plasma::AnimationGroup::~AnimationGroup | ( | ) | [virtual] |
Definition at line 50 of file animationgroup.cpp.
Member Function Documentation
| int Plasma::AnimationGroup::add | ( | Plasma::AbstractAnimation * | elem | ) | [slot] |
Add an Animation or AnimationGroup to the group.
- elem element to add
- Returns:
- id of element added
Definition at line 65 of file animationgroup.cpp.
| AbstractAnimation * Plasma::AnimationGroup::at | ( | int | id | ) | const [slot] |
Return element with given id.
- Returns:
- id of element to get
Definition at line 76 of file animationgroup.cpp.
| bool Plasma::AnimationGroup::isParallel | ( | ) | const |
- Returns:
- whether the current animation is parallel or not
Definition at line 60 of file animationgroup.cpp.
| void Plasma::AnimationGroup::remove | ( | int | id | ) | [slot] |
Remove element with given id.
- id id of element to remove
Definition at line 81 of file animationgroup.cpp.
| void Plasma::AnimationGroup::remove | ( | Plasma::AbstractAnimation * | elem | ) | [slot] |
Remove an Animation or AnimationGroup from this group.
- eleme element to remove
Definition at line 71 of file animationgroup.cpp.
| void Plasma::AnimationGroup::setParallel | ( | bool | parallelness | ) |
- parallelness whether the animation should be in parallel or not
Definition at line 55 of file animationgroup.cpp.
| QAnimationGroup * Plasma::AnimationGroup::toQAbstractAnimation | ( | QObject * | parent = 0 |
) | [virtual] |
Take the animation object and turn it into a QAnimationGroup.
More specifically, a QSerialAnimation or QParallelAnimation depending on the value of m_parallel at the time of invocation. Returns NULL on error.
Implements Plasma::AbstractAnimation.
Definition at line 90 of file animationgroup.cpp.
Property Documentation
bool Plasma::AnimationGroup::parallel [read, write] |
Definition at line 48 of file animationgroup.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference