Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/anidata_p.h
Show All 21 Lines | |||||
22 | #define ANIDATA_H | 22 | #define ANIDATA_H | ||
23 | 23 | | |||
24 | #include "kwinanimationeffect.h" | 24 | #include "kwinanimationeffect.h" | ||
25 | #include <QEasingCurve> | 25 | #include <QEasingCurve> | ||
26 | #include <netwm.h> | 26 | #include <netwm.h> | ||
27 | 27 | | |||
28 | namespace KWin { | 28 | namespace KWin { | ||
29 | 29 | | |||
30 | /** | ||||
31 | * Wraps effects->setActiveFullScreenEffect for the duration of it's lifespan | ||||
32 | */ | ||||
33 | class FullScreenEffectLock | ||||
34 | { | ||||
35 | public: | ||||
36 | FullScreenEffectLock(Effect *effect); | ||||
37 | ~FullScreenEffectLock(); | ||||
38 | private: | ||||
39 | Q_DISABLE_COPY(FullScreenEffectLock) | ||||
40 | void *d; //unused currently | ||||
41 | }; | ||||
42 | typedef QSharedPointer<FullScreenEffectLock> FullScreenEffectLockPtr; | ||||
43 | | ||||
30 | class KWINEFFECTS_EXPORT AniData { | 44 | class KWINEFFECTS_EXPORT AniData { | ||
31 | public: | 45 | public: | ||
32 | AniData(); | 46 | AniData(); | ||
33 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | 47 | AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to, | ||
34 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr()); | 48 | QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr()); | ||
35 | explicit AniData(const QString &str); | 49 | explicit AniData(const QString &str); | ||
36 | inline void addTime(int t) { time += t; } | 50 | inline void addTime(int t) { time += t; } | ||
37 | inline bool isOneDimensional() const { | 51 | inline bool isOneDimensional() const { | ||
Show All 24 Lines |