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

Plasma

Plasma::Animation

Plasma::Animation Class Reference

Abstract representation of a single animation. More...

#include <animation.h>

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

List of all members.

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