Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/anidata_p.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 49 | public: | |||
---|---|---|---|---|---|
51 | ~KeepAliveLock(); | 51 | ~KeepAliveLock(); | ||
52 | 52 | | |||
53 | private: | 53 | private: | ||
54 | EffectWindow *m_window; | 54 | EffectWindow *m_window; | ||
55 | Q_DISABLE_COPY(KeepAliveLock) | 55 | Q_DISABLE_COPY(KeepAliveLock) | ||
56 | }; | 56 | }; | ||
57 | typedef QSharedPointer<KeepAliveLock> KeepAliveLockPtr; | 57 | typedef QSharedPointer<KeepAliveLock> KeepAliveLockPtr; | ||
58 | 58 | | |||
59 | /** | ||||
60 | * References the previous window pixmap to prevent discarding. | ||||
61 | **/ | ||||
62 | class PreviousWindowPixmapLock | ||||
63 | { | ||||
64 | public: | ||||
65 | PreviousWindowPixmapLock(EffectWindow *w); | ||||
66 | ~PreviousWindowPixmapLock(); | ||||
67 | | ||||
68 | private: | ||||
69 | EffectWindow *m_window; | ||||
70 | Q_DISABLE_COPY(PreviousWindowPixmapLock) | ||||
71 | }; | ||||
72 | typedef QSharedPointer<PreviousWindowPixmapLock> PreviousWindowPixmapLockPtr; | ||||
73 | | ||||
59 | class KWINEFFECTS_EXPORT AniData { | 74 | class KWINEFFECTS_EXPORT AniData { | ||
60 | public: | 75 | public: | ||
61 | AniData(); | 76 | AniData(); | ||
62 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | 77 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | ||
63 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, | 78 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, | ||
64 | bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr(), | 79 | bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr(), | ||
65 | bool keepAlive = true); | 80 | bool keepAlive = true, PreviousWindowPixmapLockPtr previousWindowPixmapLock = {}); | ||
66 | inline void addTime(int t) { time += t; } | 81 | inline void addTime(int t) { time += t; } | ||
67 | inline bool isOneDimensional() const { | 82 | inline bool isOneDimensional() const { | ||
68 | return from[0] == from[1] && to[0] == to[1]; | 83 | return from[0] == from[1] && to[0] == to[1]; | ||
69 | } | 84 | } | ||
70 | 85 | | |||
71 | quint64 id{0}; | 86 | quint64 id{0}; | ||
72 | QString debugInfo() const; | 87 | QString debugInfo() const; | ||
73 | AnimationEffect::Attribute attribute; | 88 | AnimationEffect::Attribute attribute; | ||
74 | QEasingCurve curve; | 89 | QEasingCurve curve; | ||
75 | int customCurve; | 90 | int customCurve; | ||
76 | FPx2 from, to; | 91 | FPx2 from, to; | ||
77 | int time, duration; | 92 | int time, duration; | ||
78 | uint meta; | 93 | uint meta; | ||
79 | qint64 startTime; | 94 | qint64 startTime; | ||
80 | QSharedPointer<FullScreenEffectLock> fullScreenEffectLock; | 95 | QSharedPointer<FullScreenEffectLock> fullScreenEffectLock; | ||
81 | bool waitAtSource, keepAtTarget; | 96 | bool waitAtSource, keepAtTarget; | ||
82 | bool keepAlive; | 97 | bool keepAlive; | ||
83 | KeepAliveLockPtr keepAliveLock; | 98 | KeepAliveLockPtr keepAliveLock; | ||
99 | PreviousWindowPixmapLockPtr previousWindowPixmapLock; | ||||
84 | }; | 100 | }; | ||
85 | 101 | | |||
86 | } // namespace | 102 | } // namespace | ||
87 | 103 | | |||
88 | QDebug operator<<(QDebug dbg, const KWin::AniData &a); | 104 | QDebug operator<<(QDebug dbg, const KWin::AniData &a); | ||
89 | 105 | | |||
90 | #endif // ANIDATA_H | 106 | #endif // ANIDATA_H |