Changeset View
Changeset View
Standalone View
Standalone View
effects/minimizeanimation/minimizeanimation.h
Show All 24 Lines | |||||
25 | #include <kwineffects.h> | 25 | #include <kwineffects.h> | ||
26 | 26 | | |||
27 | namespace KWin | 27 | namespace KWin | ||
28 | { | 28 | { | ||
29 | 29 | | |||
30 | /** | 30 | /** | ||
31 | * Animates minimize/unminimize | 31 | * Animates minimize/unminimize | ||
32 | **/ | 32 | **/ | ||
33 | class MinimizeAnimationEffect | 33 | class MinimizeAnimationEffect : public Effect | ||
34 | : public Effect | | |||
35 | { | 34 | { | ||
36 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | | ||||
37 | public: | 37 | public: | ||
38 | MinimizeAnimationEffect(); | 38 | MinimizeAnimationEffect(); | ||
39 | 39 | | |||
40 | void reconfigure(ReconfigureFlags flags) override; | 40 | void reconfigure(ReconfigureFlags flags) override; | ||
41 | 41 | | |||
42 | virtual void prePaintScreen(ScreenPrePaintData& data, int time); | 42 | virtual void prePaintScreen(ScreenPrePaintData &data, int time); | ||
43 | virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); | 43 | virtual void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time); | ||
44 | virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data); | 44 | virtual void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data); | ||
45 | virtual void postPaintScreen(); | 45 | virtual void postPaintScreen(); | ||
46 | virtual bool isActive() const; | 46 | virtual bool isActive() const; | ||
47 | 47 | | |||
48 | int requestedEffectChainPosition() const override { | 48 | int requestedEffectChainPosition() const override { | ||
49 | return 50; | 49 | return 50; | ||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | static bool supported(); | 52 | static bool supported(); | ||
Show All 14 Lines |