Changeset View
Changeset View
Standalone View
Standalone View
effects/fallapart/fallapart.h
Show All 27 Lines | |||||
28 | 28 | | |||
29 | class FallApartEffect | 29 | class FallApartEffect | ||
30 | : public Effect | 30 | : public Effect | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | Q_PROPERTY(int blockSize READ configuredBlockSize) | 33 | Q_PROPERTY(int blockSize READ configuredBlockSize) | ||
34 | public: | 34 | public: | ||
35 | FallApartEffect(); | 35 | FallApartEffect(); | ||
36 | virtual void reconfigure(ReconfigureFlags); | 36 | void reconfigure(ReconfigureFlags) override; | ||
37 | virtual void prePaintScreen(ScreenPrePaintData& data, int time); | 37 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
38 | virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); | 38 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | ||
39 | virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data); | 39 | void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | ||
40 | virtual void postPaintScreen(); | 40 | void postPaintScreen() override; | ||
41 | virtual bool isActive() const; | 41 | bool isActive() const override; | ||
42 | 42 | | |||
43 | int requestedEffectChainPosition() const override { | 43 | int requestedEffectChainPosition() const override { | ||
44 | return 70; | 44 | return 70; | ||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | // for properties | 47 | // for properties | ||
48 | int configuredBlockSize() const { | 48 | int configuredBlockSize() const { | ||
49 | return blockSize; | 49 | return blockSize; | ||
Show All 18 Lines |