KWin
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KWin::Motion2D Class Reference

A single 2D motion dynamics object. More...

#include <motionmanager.h>

Inheritance diagram for KWin::Motion2D:
KWin::Motion< QPointF >

Public Member Functions

 Motion2D (QPointF initial=QPointF(), double strength=0.08, double smoothness=4.0)
 
 Motion2D (const Motion2D &other)
 
 ~Motion2D ()
 
- Public Member Functions inherited from KWin::Motion< QPointF >
 Motion (QPointF initial, double strength, double smoothness)
 
 Motion (const Motion< QPointF > &other)
 
 ~Motion ()
 
QPointF value () const
 
void setValue (const QPointF value)
 
QPointF target () const
 
void setTarget (const QPointF target)
 
QPointF velocity () const
 
void setVelocity (const QPointF velocity)
 
double strength () const
 
void setStrength (const double strength)
 
double smoothness () const
 
void setSmoothness (const double smoothness)
 
QPointF startValue ()
 
QPointF distance () const
 
void calculate (const int msec)
 
void finish ()
 

Detailed Description

A single 2D motion dynamics object.

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

Definition at line 134 of file motionmanager.h.

Constructor & Destructor Documentation

◆ Motion2D() [1/2]

KWin::Motion2D::Motion2D ( QPointF initial = QPointF(),
double strength = 0.08,
double smoothness = 4.0 )
explicit

Definition at line 36 of file motionmanager.cpp.

◆ Motion2D() [2/2]

KWin::Motion2D::Motion2D ( const Motion2D & other)

Definition at line 41 of file motionmanager.cpp.

◆ ~Motion2D()

KWin::Motion2D::~Motion2D ( )

Definition at line 46 of file motionmanager.cpp.


The documentation for this class was generated from the following files: