Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | class BlurShader; | 45 | class BlurShader; | ||
46 | 46 | | |||
47 | class BlurEffect : public KWin::Effect | 47 | class BlurEffect : public KWin::Effect | ||
48 | { | 48 | { | ||
49 | Q_OBJECT | 49 | Q_OBJECT | ||
50 | 50 | | |||
51 | public: | 51 | public: | ||
52 | BlurEffect(); | 52 | BlurEffect(); | ||
53 | ~BlurEffect(); | 53 | ~BlurEffect() override; | ||
54 | 54 | | |||
55 | static bool supported(); | 55 | static bool supported(); | ||
56 | static bool enabledByDefault(); | 56 | static bool enabledByDefault(); | ||
57 | 57 | | |||
58 | void reconfigure(ReconfigureFlags flags); | 58 | void reconfigure(ReconfigureFlags flags) override; | ||
59 | void prePaintScreen(ScreenPrePaintData &data, int time); | 59 | void prePaintScreen(ScreenPrePaintData &data, int time) override; | ||
60 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); | 60 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | ||
61 | void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data); | 61 | void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override; | ||
62 | void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity); | 62 | void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity) override; | ||
63 | 63 | | |||
64 | virtual bool provides(Feature feature); | 64 | bool provides(Feature feature) override; | ||
65 | 65 | | |||
66 | int requestedEffectChainPosition() const override { | 66 | int requestedEffectChainPosition() const override { | ||
67 | return 75; | 67 | return 75; | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | public Q_SLOTS: | 70 | public Q_SLOTS: | ||
71 | void slotWindowAdded(KWin::EffectWindow *w); | 71 | void slotWindowAdded(KWin::EffectWindow *w); | ||
72 | void slotWindowDeleted(KWin::EffectWindow *w); | 72 | void slotWindowDeleted(KWin::EffectWindow *w); | ||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |