Changeset View
Changeset View
Standalone View
Standalone View
effects/invert/invert.h
Show All 32 Lines | |||||
33 | * Inverts desktop's colors | 33 | * Inverts desktop's colors | ||
34 | **/ | 34 | **/ | ||
35 | class InvertEffect | 35 | class InvertEffect | ||
36 | : public Effect | 36 | : public Effect | ||
37 | { | 37 | { | ||
38 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | public: | 39 | public: | ||
40 | InvertEffect(); | 40 | InvertEffect(); | ||
41 | ~InvertEffect(); | 41 | ~InvertEffect() override; | ||
42 | 42 | | |||
43 | virtual void drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data); | 43 | void drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | ||
44 | virtual void paintEffectFrame(KWin::EffectFrame* frame, QRegion region, double opacity, double frameOpacity); | 44 | void paintEffectFrame(KWin::EffectFrame* frame, QRegion region, double opacity, double frameOpacity) override; | ||
45 | virtual bool isActive() const; | 45 | bool isActive() const override; | ||
46 | virtual bool provides(Feature); | 46 | bool provides(Feature) override; | ||
47 | 47 | | |||
48 | int requestedEffectChainPosition() const override; | 48 | int requestedEffectChainPosition() const override; | ||
49 | 49 | | |||
50 | static bool supported(); | 50 | static bool supported(); | ||
51 | 51 | | |||
52 | public Q_SLOTS: | 52 | public Q_SLOTS: | ||
53 | void toggleScreenInversion(); | 53 | void toggleScreenInversion(); | ||
54 | void toggleWindow(); | 54 | void toggleWindow(); | ||
Show All 21 Lines |