Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAnimationPlaybackControlsModel.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISANIMATIONPLAYBACKCONTROLSMODEL_H
8#define KISANIMATIONPLAYBACKCONTROLSMODEL_H
9
10#include <QObject>
11
12#include <lager/state.hpp>
13#include <lager/extra/qt.hpp>
14
17
19{
20 Q_OBJECT
21public:
23
26
27private:
28 lager::state<bool, lager::automatic_tag> m_dropFramesMode;
29 lager::state<qreal, lager::automatic_tag> m_playbackSpeed;
30
31public:
32 LAGER_QT_CURSOR(bool, dropFramesMode);
33 LAGER_QT_CURSOR(qreal, playbackSpeed);
34 LAGER_QT_CURSOR(int, playbackSpeedDenorm);
35};
36
37#endif // KISANIMATIONPLAYBACKCONTROLSMODEL_H
lager::state< bool, lager::automatic_tag > m_dropFramesMode
LAGER_QT_CURSOR(qreal, playbackSpeed)
LAGER_QT_CURSOR(int, playbackSpeedDenorm)
lager::state< qreal, lager::automatic_tag > m_playbackSpeed
LAGER_QT_CURSOR(bool, dropFramesMode)
void connectAnimationState(KisCanvasAnimationState *state)
void connectPlaybackEngine(KisPlaybackEngine *engine)
The KisCanvasAnimationState class stores all of the canvas-specific animation state.
Krita's base animation playback engine for producing image frame changes and associated audio.