Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/anidata_p.h
Show All 25 Lines | |||||
26 | #include <netwm.h> | 26 | #include <netwm.h> | ||
27 | 27 | | |||
28 | namespace KWin { | 28 | namespace KWin { | ||
29 | 29 | | |||
30 | class KWINEFFECTS_EXPORT AniData { | 30 | class KWINEFFECTS_EXPORT AniData { | ||
31 | public: | 31 | public: | ||
32 | AniData(); | 32 | AniData(); | ||
33 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | 33 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | ||
34 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, bool keepAtTarget = false); | 34 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr()); | ||
zzag: I think the line has become too long. Maybe, move FullScreenEffectLockPtr param to a new line? | |||||
35 | explicit AniData(const QString &str); | 35 | explicit AniData(const QString &str); | ||
36 | inline void addTime(int t) { time += t; } | 36 | inline void addTime(int t) { time += t; } | ||
37 | inline bool isOneDimensional() const { | 37 | inline bool isOneDimensional() const { | ||
38 | return from[0] == from[1] && to[0] == to[1]; | 38 | return from[0] == from[1] && to[0] == to[1]; | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | quint64 id{0}; | 41 | quint64 id{0}; | ||
42 | static QList<AniData> list(const QString &str); | 42 | static QList<AniData> list(const QString &str); | ||
43 | QString toString() const; | 43 | QString toString() const; | ||
44 | QString debugInfo() const; | 44 | QString debugInfo() const; | ||
45 | AnimationEffect::Attribute attribute; | 45 | AnimationEffect::Attribute attribute; | ||
46 | QEasingCurve curve; | 46 | QEasingCurve curve; | ||
47 | int customCurve; | 47 | int customCurve; | ||
48 | FPx2 from, to; | 48 | FPx2 from, to; | ||
49 | int time, duration; | 49 | int time, duration; | ||
50 | uint meta; | 50 | uint meta; | ||
51 | qint64 startTime; | 51 | qint64 startTime; | ||
52 | NET::WindowTypeMask windowType; | 52 | NET::WindowTypeMask windowType; | ||
53 | QSharedPointer<FullScreenEffectLock> fullScreenEffectLock; | ||||
zzag: Typo. (three l's) | |||||
53 | bool waitAtSource, keepAtTarget; | 54 | bool waitAtSource, keepAtTarget; | ||
54 | }; | 55 | }; | ||
55 | 56 | | |||
56 | } // namespace | 57 | } // namespace | ||
57 | 58 | | |||
58 | QDebug operator<<(QDebug dbg, const KWin::AniData &a); | 59 | QDebug operator<<(QDebug dbg, const KWin::AniData &a); | ||
59 | 60 | | |||
60 | #endif // ANIDATA_H | 61 | #endif // ANIDATA_H |
I think the line has become too long. Maybe, move FullScreenEffectLockPtr param to a new line?