Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_switch_time_stroke_strategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SWITCH_TIME_STROKE_STRATEGY_H
8#define __KIS_SWITCH_TIME_STROKE_STRATEGY_H
9
11
12#include <QScopedPointer>
13
16
17
19{
20public:
21 struct SharedToken {
22 SharedToken(int initialTime, bool needsRegeneration);
24
25 bool tryResetDestinationTime(int time, bool needsRegeneration);
26 int fetchTime() const;
27
28 private:
29 struct Private;
30 QScopedPointer<Private> m_d;
31 };
32
35
36public:
44 bool needsRegeneration,
46 KisPostExecutionUndoAdapter *undoAdapter);
48
49 void initStrokeCallback() override;
50 KisStrokeStrategy* createLodClone(int levelOfDetail) override;
51
52 SharedTokenSP token() const;
53
54
55private:
56 struct Private;
57 const QScopedPointer<Private> m_d;
58};
59
60#endif /* __KIS_SWITCH_TIME_STROKE_STRATEGY_H */
KisSwitchTimeStrokeStrategy(int frameId, bool needsRegeneration, KisImageAnimationInterface *interface, KisPostExecutionUndoAdapter *undoAdapter)
const QScopedPointer< Private > m_d
KisStrokeStrategy * createLodClone(int levelOfDetail) override
QSharedPointer< SharedToken > SharedTokenSP
QWeakPointer< SharedToken > SharedTokenWSP
bool tryResetDestinationTime(int time, bool needsRegeneration)
SharedToken(int initialTime, bool needsRegeneration)