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