Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/anidata_p.h
Show All 39 Lines | |||||
40 | }; | 40 | }; | ||
41 | typedef QSharedPointer<FullScreenEffectLock> FullScreenEffectLockPtr; | 41 | typedef QSharedPointer<FullScreenEffectLock> FullScreenEffectLockPtr; | ||
42 | 42 | | |||
43 | class KWINEFFECTS_EXPORT AniData { | 43 | class KWINEFFECTS_EXPORT AniData { | ||
44 | public: | 44 | public: | ||
45 | AniData(); | 45 | AniData(); | ||
46 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | 46 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | ||
47 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr()); | 47 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr()); | ||
48 | explicit AniData(const QString &str); | | |||
49 | inline void addTime(int t) { time += t; } | 48 | inline void addTime(int t) { time += t; } | ||
50 | inline bool isOneDimensional() const { | 49 | inline bool isOneDimensional() const { | ||
51 | return from[0] == from[1] && to[0] == to[1]; | 50 | return from[0] == from[1] && to[0] == to[1]; | ||
52 | } | 51 | } | ||
53 | 52 | | |||
54 | quint64 id{0}; | 53 | quint64 id{0}; | ||
55 | static QList<AniData> list(const QString &str); | | |||
56 | QString toString() const; | | |||
57 | QString debugInfo() const; | 54 | QString debugInfo() const; | ||
58 | AnimationEffect::Attribute attribute; | 55 | AnimationEffect::Attribute attribute; | ||
59 | QEasingCurve curve; | 56 | QEasingCurve curve; | ||
60 | int customCurve; | 57 | int customCurve; | ||
61 | FPx2 from, to; | 58 | FPx2 from, to; | ||
62 | int time, duration; | 59 | int time, duration; | ||
63 | uint meta; | 60 | uint meta; | ||
64 | qint64 startTime; | 61 | qint64 startTime; | ||
Show All 10 Lines |