Changeset View
Changeset View
Standalone View
Standalone View
effects/backgroundcontrast/contrast.h
| Show All 40 Lines | |||||
| 41 | 41 | | |||
| 42 | class ContrastShader; | 42 | class ContrastShader; | ||
| 43 | 43 | | |||
| 44 | class ContrastEffect : public KWin::Effect | 44 | class ContrastEffect : public KWin::Effect | ||
| 45 | { | 45 | { | ||
| 46 | Q_OBJECT | 46 | Q_OBJECT | ||
| 47 | public: | 47 | public: | ||
| 48 | ContrastEffect(); | 48 | ContrastEffect(); | ||
| 49 | ~ContrastEffect(); | 49 | ~ContrastEffect() override; | ||
| 50 | 50 | | |||
| 51 | static bool supported(); | 51 | static bool supported(); | ||
| 52 | static bool enabledByDefault(); | 52 | static bool enabledByDefault(); | ||
| 53 | 53 | | |||
| 54 | static QMatrix4x4 colorMatrix(qreal contrast, qreal intensity, qreal saturation); | 54 | static QMatrix4x4 colorMatrix(qreal contrast, qreal intensity, qreal saturation); | ||
| 55 | void reconfigure(ReconfigureFlags flags); | 55 | void reconfigure(ReconfigureFlags flags) override; | ||
| 56 | void prePaintScreen(ScreenPrePaintData &data, int time); | 56 | void prePaintScreen(ScreenPrePaintData &data, int time) override; | ||
| 57 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); | 57 | void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time) override; | ||
| 58 | void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data); | 58 | void drawWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override; | ||
| 59 | void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity); | 59 | void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity) override; | ||
| 60 | 60 | | |||
| 61 | virtual bool provides(Feature feature); | 61 | bool provides(Feature feature) override; | ||
| 62 | 62 | | |||
| 63 | int requestedEffectChainPosition() const override { | 63 | int requestedEffectChainPosition() const override { | ||
| 64 | return 76; | 64 | return 76; | ||
| 65 | } | 65 | } | ||
| 66 | 66 | | |||
| 67 | public Q_SLOTS: | 67 | public Q_SLOTS: | ||
| 68 | void slotWindowAdded(KWin::EffectWindow *w); | 68 | void slotWindowAdded(KWin::EffectWindow *w); | ||
| 69 | void slotWindowDeleted(KWin::EffectWindow *w); | 69 | void slotWindowDeleted(KWin::EffectWindow *w); | ||
| Show All 35 Lines | |||||