• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

Plasma::AbstractAnimation

Plasma::AbstractAnimation Class Reference

Abstract base class for AnimationGroup and Animation. More...

#include <abstractanimation.h>

Inheritance diagram for Plasma::AbstractAnimation:
Inheritance graph
[legend]

List of all members.

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

enum Plasma::AbstractAnimation::Reference
Enumerator:
Center 
Up 
Down 
Left 
Right 

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:
  • abstractanimation.h
  • abstractanimation.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  •     Sodep
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal