Changeset View
Changeset View
Standalone View
Standalone View
src/PlatformBackends/DummyImageGrabber.h
Show All 28 Lines | |||||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | 33 | | |||
34 | explicit DummyImageGrabber(QObject *parent = nullptr); | 34 | explicit DummyImageGrabber(QObject *parent = nullptr); | ||
35 | ~DummyImageGrabber() Q_DECL_OVERRIDE; | 35 | ~DummyImageGrabber() Q_DECL_OVERRIDE; | ||
36 | 36 | | |||
37 | QVector<ImageGrabber::GrabMode> supportedModes() const override { return {FullScreen, CurrentScreen, ActiveWindow, WindowUnderCursor, TransientWithParent, RectangularRegion}; } | ||||
37 | bool onClickGrabSupported() const Q_DECL_OVERRIDE; | 38 | bool onClickGrabSupported() const Q_DECL_OVERRIDE; | ||
38 | 39 | | |||
39 | protected: | 40 | protected: | ||
40 | 41 | | |||
41 | QPixmap blendCursorImage(const QPixmap &pixmap, int x, int y, int width, int height) Q_DECL_OVERRIDE; | 42 | QPixmap blendCursorImage(const QPixmap &pixmap, int x, int y, int width, int height) Q_DECL_OVERRIDE; | ||
42 | void grabFullScreen() Q_DECL_OVERRIDE; | 43 | void grabFullScreen() Q_DECL_OVERRIDE; | ||
43 | void grabCurrentScreen() Q_DECL_OVERRIDE; | 44 | void grabCurrentScreen() Q_DECL_OVERRIDE; | ||
44 | void grabActiveWindow() Q_DECL_OVERRIDE; | 45 | void grabActiveWindow() Q_DECL_OVERRIDE; | ||
45 | void grabRectangularRegion() Q_DECL_OVERRIDE; | 46 | void grabRectangularRegion() Q_DECL_OVERRIDE; | ||
46 | void grabWindowUnderCursor() Q_DECL_OVERRIDE; | 47 | void grabWindowUnderCursor() Q_DECL_OVERRIDE; | ||
47 | void grabTransientWithParent() Q_DECL_OVERRIDE; | 48 | void grabTransientWithParent() Q_DECL_OVERRIDE; | ||
48 | }; | 49 | }; | ||
49 | 50 | | |||
50 | #endif // DUMMYIMAGEGRABBER_H | 51 | #endif // DUMMYIMAGEGRABBER_H |