Changeset View
Changeset View
Standalone View
Standalone View
src/PlatformBackends/X11ImageGrabber.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | { | 45 | { | ||
46 | Q_OBJECT | 46 | Q_OBJECT | ||
47 | 47 | | |||
48 | public: | 48 | public: | ||
49 | 49 | | |||
50 | explicit X11ImageGrabber(QObject * parent = nullptr); | 50 | explicit X11ImageGrabber(QObject * parent = nullptr); | ||
51 | ~X11ImageGrabber() Q_DECL_OVERRIDE; | 51 | ~X11ImageGrabber() Q_DECL_OVERRIDE; | ||
52 | 52 | | |||
53 | QVector<ImageGrabber::GrabMode> supportedModes() const override { return {FullScreen, CurrentScreen, ActiveWindow, WindowUnderCursor, TransientWithParent, RectangularRegion}; } | ||||
53 | bool onClickGrabSupported() const Q_DECL_OVERRIDE; | 54 | bool onClickGrabSupported() const Q_DECL_OVERRIDE; | ||
54 | 55 | | |||
55 | protected: | 56 | protected: | ||
56 | 57 | | |||
57 | void grabFullScreen() Q_DECL_OVERRIDE; | 58 | void grabFullScreen() Q_DECL_OVERRIDE; | ||
58 | void grabCurrentScreen() Q_DECL_OVERRIDE; | 59 | void grabCurrentScreen() Q_DECL_OVERRIDE; | ||
59 | void grabActiveWindow() Q_DECL_OVERRIDE; | 60 | void grabActiveWindow() Q_DECL_OVERRIDE; | ||
60 | void grabRectangularRegion() Q_DECL_OVERRIDE; | 61 | void grabRectangularRegion() Q_DECL_OVERRIDE; | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |