Krita Source Code Documentation
Loading...
Searching...
No Matches
KisFrameRateLimitModel.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISFRAMERATELIMITMODEL_H
7#define KISFRAMERATELIMITMODEL_H
8
9#include <QObject>
10#include <tuple>
11#include <lager/state.hpp>
12#include <lager/cursor.hpp>
13#include <lager/extra/qt.hpp>
15
16class KisFrameRateLimitModel : public QObject
17{
18 Q_OBJECT
19
20public:
21 using Data = std::tuple<bool, int>;
22public:
23 KisFrameRateLimitModel(lager::cursor<Data> _data = lager::make_state(Data(true, 60), lager::automatic_tag{}));
24
25 lager::cursor<Data> data;
26
27 LAGER_QT_CURSOR(bool, detectFrameRate);
28 LAGER_QT_CURSOR(int, frameRate);
29 LAGER_QT_READER(IntSpinBoxState, frameRateState);
30};
31
32#endif // KISFRAMERATELIMITMODEL_H
LAGER_QT_CURSOR(int, frameRate)
std::tuple< bool, int > Data
LAGER_QT_READER(IntSpinBoxState, frameRateState)
LAGER_QT_CURSOR(bool, detectFrameRate)
lager::cursor< Data > data
KisFrameRateLimitModel(lager::cursor< Data > _data=lager::make_state(Data(true, 60), lager::automatic_tag{}))