Plasma
Plasma::AbstractAnimation Class Reference
Abstract base class for AnimationGroup and Animation. More...
#include <abstractanimation.h>

Public Types | |
| enum | Reference { Center, Up, Down, Left, Right } |
Public Slots | |
| virtual void | start () |
Public Member Functions | |
| AbstractAnimation (QObject *parent=0) | |
| virtual | ~AbstractAnimation () |
| QAbstractAnimation * | animation () |
| qint8 | direction () const |
| qreal | distance () const |
| QEasingCurve::Type | easingCurveType () const |
| bool | forwards () const |
| bool | isVisible () const |
| void | setAnimation (QAbstractAnimation *obj) |
| void | setDirection (const qint8 &direction) |
| void | setDistance (qreal distance) |
| void | setEasingCurveType (QEasingCurve::Type easingCurve) |
| void | setForwards (bool forward) |
| void | setVisible (bool isVisible) |
| virtual void | setWidgetToAnimate (QGraphicsWidget *receiver) |
| virtual QAbstractAnimation * | toQAbstractAnimation (QObject *parent)=0 |
| QGraphicsWidget * | widgetToAnimate () |
Properties | |
| QAbstractAnimation | animation |
| qint8 | direction |
| qreal | distance |
| QEasingCurve::Type | easingCurveType |
| bool | forwards |
| bool | isVisible |
| QGraphicsWidget | widgetToAnimate |
Detailed Description
Abstract base class for AnimationGroup and Animation.
- Since:
- 4.4
Definition at line 46 of file abstractanimation.h.
Member Enumeration Documentation
Definition at line 60 of file abstractanimation.h.
Constructor & Destructor Documentation
| Plasma::AbstractAnimation::AbstractAnimation | ( | QObject * | parent = 0 |
) | [explicit] |
Definition at line 37 of file abstractanimation.cpp.
| Plasma::AbstractAnimation::~AbstractAnimation | ( | ) | [virtual] |
Definition at line 43 of file abstractanimation.cpp.
Member Function Documentation
| QAbstractAnimation* Plasma::AbstractAnimation::animation | ( | ) |
Access the QAbstractAnimation of this plasma::Animation object.
| qint8 Plasma::AbstractAnimation::direction | ( | ) | const |
Get the animation direction.
| qreal Plasma::AbstractAnimation::distance | ( | ) | const |
Get the animation distance.
| QEasingCurve::Type Plasma::AbstractAnimation::easingCurveType | ( | ) | const |
Get the animation easing curve type.
| bool Plasma::AbstractAnimation::forwards | ( | ) | const |
- Returns:
- true if the animation will run forwards, false if it will run backwards
| bool Plasma::AbstractAnimation::isVisible | ( | ) | const |
get the animation visibility
| void Plasma::AbstractAnimation::setAnimation | ( | QAbstractAnimation * | obj | ) |
Access the QAbstractAnimation of this plasma::Animation object.
- obj An animation pointer (it will be cleared by the object)
Definition at line 117 of file abstractanimation.cpp.
| void Plasma::AbstractAnimation::setDirection | ( | const qint8 & | direction | ) |
Set the animation direction.
- direction animation direction
Definition at line 82 of file abstractanimation.cpp.
| void Plasma::AbstractAnimation::setDistance | ( | qreal | distance | ) |
Set the animation distance animation distance.
Definition at line 92 of file abstractanimation.cpp.
| void Plasma::AbstractAnimation::setEasingCurveType | ( | QEasingCurve::Type | easingCurve | ) |
Set the animation easing curve type.
Definition at line 62 of file abstractanimation.cpp.
| void Plasma::AbstractAnimation::setForwards | ( | bool | forward | ) |
Sets whether the animation will run forwards or backwards.
- forward true to run the animation forewards
Definition at line 72 of file abstractanimation.cpp.
| void Plasma::AbstractAnimation::setVisible | ( | bool | isVisible | ) |
set the animation visibility
- isVisible animation visibility
Definition at line 102 of file abstractanimation.cpp.
| void Plasma::AbstractAnimation::setWidgetToAnimate | ( | QGraphicsWidget * | receiver | ) | [virtual] |
Set the widget on which the animation is to be performed.
- receiver The QGraphicsWidget to be animated.
Definition at line 48 of file abstractanimation.cpp.
| void Plasma::AbstractAnimation::start | ( | ) | [virtual, slot] |
Start the animation.
Definition at line 122 of file abstractanimation.cpp.
| virtual QAbstractAnimation* Plasma::AbstractAnimation::toQAbstractAnimation | ( | QObject * | parent | ) | [pure virtual] |
Take an AbstractAnimation and turn it into a QAbstractAnimation.
Implemented in Plasma::Animation, and Plasma::AnimationGroup.
| QGraphicsWidget* Plasma::AbstractAnimation::widgetToAnimate | ( | ) |
The widget that the animation will be performed upon.
Property Documentation
QAbstractAnimation * Plasma::AbstractAnimation::animation [read, write] |
Definition at line 55 of file abstractanimation.h.
qint8 Plasma::AbstractAnimation::direction [read, write] |
Definition at line 50 of file abstractanimation.h.
qreal Plasma::AbstractAnimation::distance [read, write] |
Definition at line 51 of file abstractanimation.h.
QEasingCurve::Type Plasma::AbstractAnimation::easingCurveType [read, write] |
Definition at line 49 of file abstractanimation.h.
bool Plasma::AbstractAnimation::forwards [read, write] |
Definition at line 54 of file abstractanimation.h.
bool Plasma::AbstractAnimation::isVisible [read, write] |
Definition at line 52 of file abstractanimation.h.
QGraphicsWidget * Plasma::AbstractAnimation::widgetToAnimate [read, write] |
Definition at line 53 of file abstractanimation.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference