Changeset View
Changeset View
Standalone View
Standalone View
effects/coverswitch/coverswitch.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 39 | { | |||
---|---|---|---|---|---|
45 | Q_PROPERTY(bool reflection READ isReflection) | 45 | Q_PROPERTY(bool reflection READ isReflection) | ||
46 | Q_PROPERTY(bool windowTitle READ isWindowTitle) | 46 | Q_PROPERTY(bool windowTitle READ isWindowTitle) | ||
47 | Q_PROPERTY(qreal zPosition READ windowZPosition) | 47 | Q_PROPERTY(qreal zPosition READ windowZPosition) | ||
48 | Q_PROPERTY(bool primaryTabBox READ isPrimaryTabBox) | 48 | Q_PROPERTY(bool primaryTabBox READ isPrimaryTabBox) | ||
49 | Q_PROPERTY(bool secondaryTabBox READ isSecondaryTabBox) | 49 | Q_PROPERTY(bool secondaryTabBox READ isSecondaryTabBox) | ||
50 | // TODO: mirror colors | 50 | // TODO: mirror colors | ||
51 | public: | 51 | public: | ||
52 | CoverSwitchEffect(); | 52 | CoverSwitchEffect(); | ||
53 | ~CoverSwitchEffect(); | 53 | ~CoverSwitchEffect() override; | ||
54 | 54 | | |||
55 | virtual void reconfigure(ReconfigureFlags); | 55 | void reconfigure(ReconfigureFlags) override; | ||
56 | virtual void prePaintScreen(ScreenPrePaintData& data, int time); | 56 | void prePaintScreen(ScreenPrePaintData &data, int time) override; | ||
57 | virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data); | 57 | void paintScreen(int mask, QRegion region, ScreenPaintData &data) override; | ||
58 | virtual void postPaintScreen(); | 58 | void postPaintScreen(); | ||
59 | virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data); | 59 | void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override; | ||
60 | virtual void windowInputMouseEvent(QEvent* e); | 60 | void windowInputMouseEvent(QEvent *e) override; | ||
61 | virtual bool isActive() const; | 61 | bool isActive() const override; | ||
62 | 62 | | |||
63 | static bool supported(); | 63 | static bool supported(); | ||
64 | 64 | | |||
65 | // for properties | 65 | // for properties | ||
66 | int configuredAnimationDuration() const { | 66 | int configuredAnimationDuration() const { | ||
67 | return animationDuration.count(); | 67 | return animationDuration.count(); | ||
68 | } | 68 | } | ||
69 | bool isAnimateSwitch() const { | 69 | bool isAnimateSwitch() const { | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |