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

KWinLibraries

KWin::Motion

KWin::Motion< T > Class Template Reference
[KWin effects library]

A single motion dynamics object. More...

#include <kwineffects.h>

Inheritance diagram for KWin::Motion< T >:

Inheritance graph
[legend]

List of all members.


Public Member Functions

void calculate (const int msec)
double decay () const
T distance () const
void finish ()
 Motion (const Motion< T > &other)
 Motion (T initial=T(), double strength=7.5, double decay=0.5)
void setDecay (const double decay)
void setStrength (const double strength)
void setStrengthDecay (const double strength, const double decay)
void setTarget (const T target)
void setValue (const T value)
void setVelocity (const T velocity)
double strength () const
T target () const
T value () const
T velocity () const
 ~Motion ()

Detailed Description

template<typename T>
class KWin::Motion< T >

A single motion dynamics object.

This class represents a single object that can be moved around a n-dimensional space. Although it can be used directly by itself it is recommended to use a motion manager instead.

To create a 1D motion object use Motion<double> To create a 2D motion object use Motion<QRectF>

Definition at line 1269 of file kwineffects.h.


The documentation for this class was generated from the following file:
  • kwineffects.h

KWinLibraries

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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