KWinLibraries
KWin::Motion< T > Class Template Reference
[KWin effects library]
A single motion dynamics object.
More...
#include <kwineffects.h>
Inheritance diagram for KWin::Motion< T >:

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: