kwin/autotests/libkwineffects
Vlad Zagorodniy e02573263f [libkwineffects] Introduce timeline redirect modes
Summary:
The redirect modes control behavior of the timeline when its direction
is changed at the start or target position. For example, consider the
following piece of code:

    TimeLine timeLine(1000ms, TimeLine::Forward);
    timeLine.setDirection(TimeLine::Backward);

What should happen when the direction of the timeline was changed to go
backward? Should the current value of the timeline go from 1 to 0, or
should the timeline stop its "execution"?

In the relaxed mode, the timeline will go from 1 to 0.
In the strict mode, the timeline will stop its execution.

Different effects may prefer different modes for source and target
positions. For example, most C++ effect would prefer relaxed mode for
source position, and strict mode for target position. On the other side,
scripted effects(AnimationEffect) would prefer strict mode for source
position, and relaxed mode for target position(because of set).

Reviewers: #kwin, graesslin

Reviewed By: #kwin, graesslin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16447
2018-11-17 13:43:39 +02:00
..
data/glplatform Properly detect Gallium drivers with newer Mesa 2018-01-12 09:05:03 +01:00
CMakeLists.txt [libkwineffects] Add TimeLine helper 2018-06-30 09:58:11 +03:00
kwinglplatformtest.cpp Remove Qt module declarations in includes 2018-06-05 18:07:23 +01:00
mock_gl.cpp [autotest] Introduce a test infrastructure for GLPlatform 2016-08-05 08:47:32 +02:00
mock_gl.h [autotest] Introduce a test infrastructure for GLPlatform 2016-08-05 08:47:32 +02:00
timelinetest.cpp [libkwineffects] Introduce timeline redirect modes 2018-11-17 13:43:39 +02:00
windowquadlisttest.cpp Remove Qt module declarations in includes 2018-06-05 18:07:23 +01:00