Changeset View
Changeset View
Standalone View
Standalone View
effects/wobblywindows/wobblywindows.h
Show All 38 Lines | 26 | { | |||
---|---|---|---|---|---|
39 | Q_PROPERTY(bool moveEffectEnabled READ isMoveEffectEnabled) | 39 | Q_PROPERTY(bool moveEffectEnabled READ isMoveEffectEnabled) | ||
40 | Q_PROPERTY(bool openEffectEnabled READ isOpenEffectEnabled) | 40 | Q_PROPERTY(bool openEffectEnabled READ isOpenEffectEnabled) | ||
41 | Q_PROPERTY(bool closeEffectEnabled READ isCloseEffectEnabled) | 41 | Q_PROPERTY(bool closeEffectEnabled READ isCloseEffectEnabled) | ||
42 | Q_PROPERTY(bool moveWobble READ isMoveWobble) | 42 | Q_PROPERTY(bool moveWobble READ isMoveWobble) | ||
43 | Q_PROPERTY(bool resizeWobble READ isResizeWobble) | 43 | Q_PROPERTY(bool resizeWobble READ isResizeWobble) | ||
44 | public: | 44 | public: | ||
45 | 45 | | |||
46 | WobblyWindowsEffect(); | 46 | WobblyWindowsEffect(); | ||
47 | virtual ~WobblyWindowsEffect(); | 47 | ~WobblyWindowsEffect() override; | ||
48 | 48 | | |||
49 | virtual void reconfigure(ReconfigureFlags); | 49 | void reconfigure(ReconfigureFlags) override; | ||
50 | virtual void prePaintScreen(ScreenPrePaintData& data, int time); | 50 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
51 | virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); | 51 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | ||
52 | virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data); | 52 | void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | ||
53 | virtual void postPaintScreen(); | 53 | void postPaintScreen() override; | ||
54 | virtual bool isActive() const; | 54 | bool isActive() const override; | ||
55 | 55 | | |||
56 | int requestedEffectChainPosition() const override { | 56 | int requestedEffectChainPosition() const override { | ||
57 | // Please notice that the Wobbly Windows effect has to be placed | 57 | // Please notice that the Wobbly Windows effect has to be placed | ||
58 | // after the Maximize effect in the effect chain, otherwise there | 58 | // after the Maximize effect in the effect chain, otherwise there | ||
59 | // can be visual artifacts when dragging maximized windows. | 59 | // can be visual artifacts when dragging maximized windows. | ||
60 | return 70; | 60 | return 70; | ||
61 | } | 61 | } | ||
62 | 62 | | |||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |