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

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

#include <motionmanager.h>

Inheritance diagram for KWin::Motion1D:
KWin::Motion< double >

Public Member Functions

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

Detailed Description

A single 1D motion dynamics object.

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

Definition at line 119 of file motionmanager.h.

Constructor & Destructor Documentation

◆ Motion1D() [1/2]

KWin::Motion1D::Motion1D ( double initial = 0.0,
double strength = 0.08,
double smoothness = 4.0 )
explicit

Definition at line 18 of file motionmanager.cpp.

◆ Motion1D() [2/2]

KWin::Motion1D::Motion1D ( const Motion1D & other)

Definition at line 23 of file motionmanager.cpp.

◆ ~Motion1D()

KWin::Motion1D::~Motion1D ( )

Definition at line 28 of file motionmanager.cpp.


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