Changeset View
Changeset View
Standalone View
Standalone View
effects/zoom/zoom.h
Show All 40 Lines | 37 | { | |||
---|---|---|---|---|---|
41 | Q_PROPERTY(int mouseTracking READ configuredMouseTracking) | 41 | Q_PROPERTY(int mouseTracking READ configuredMouseTracking) | ||
42 | Q_PROPERTY(bool enableFocusTracking READ isEnableFocusTracking) | 42 | Q_PROPERTY(bool enableFocusTracking READ isEnableFocusTracking) | ||
43 | Q_PROPERTY(bool followFocus READ isFollowFocus) | 43 | Q_PROPERTY(bool followFocus READ isFollowFocus) | ||
44 | Q_PROPERTY(int focusDelay READ configuredFocusDelay) | 44 | Q_PROPERTY(int focusDelay READ configuredFocusDelay) | ||
45 | Q_PROPERTY(qreal moveFactor READ configuredMoveFactor) | 45 | Q_PROPERTY(qreal moveFactor READ configuredMoveFactor) | ||
46 | Q_PROPERTY(qreal targetZoom READ targetZoom) | 46 | Q_PROPERTY(qreal targetZoom READ targetZoom) | ||
47 | public: | 47 | public: | ||
48 | ZoomEffect(); | 48 | ZoomEffect(); | ||
49 | virtual ~ZoomEffect(); | 49 | ~ZoomEffect() override; | ||
50 | virtual void reconfigure(ReconfigureFlags flags); | 50 | void reconfigure(ReconfigureFlags flags) override; | ||
51 | virtual void prePaintScreen(ScreenPrePaintData& data, int time); | 51 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
52 | virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data); | 52 | void paintScreen(int mask, QRegion region, ScreenPaintData& data) override; | ||
53 | virtual void postPaintScreen(); | 53 | void postPaintScreen() override; | ||
54 | virtual bool isActive() const; | 54 | bool isActive() const override; | ||
55 | // for properties | 55 | // for properties | ||
56 | qreal configuredZoomFactor() const { | 56 | qreal configuredZoomFactor() const { | ||
57 | return zoomFactor; | 57 | return zoomFactor; | ||
58 | } | 58 | } | ||
59 | int configuredMousePointer() const { | 59 | int configuredMousePointer() const { | ||
60 | return mousePointer; | 60 | return mousePointer; | ||
61 | } | 61 | } | ||
62 | int configuredMouseTracking() const { | 62 | int configuredMouseTracking() const { | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |