Changeset View
Changeset View
Standalone View
Standalone View
effects/screenshot/screenshot.h
Show All 36 Lines | 36 | { | |||
---|---|---|---|---|---|
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.Screenshot") | 38 | Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.Screenshot") | ||
39 | public: | 39 | public: | ||
40 | enum ScreenShotType { | 40 | enum ScreenShotType { | ||
41 | INCLUDE_DECORATION = 1 << 0, | 41 | INCLUDE_DECORATION = 1 << 0, | ||
42 | INCLUDE_CURSOR = 1 << 1 | 42 | INCLUDE_CURSOR = 1 << 1 | ||
43 | }; | 43 | }; | ||
44 | ScreenShotEffect(); | 44 | ScreenShotEffect(); | ||
45 | virtual ~ScreenShotEffect(); | 45 | ~ScreenShotEffect() override; | ||
46 | | ||||
46 | void paintScreen(int mask, QRegion region, ScreenPaintData &data) override; | 47 | void paintScreen(int mask, QRegion region, ScreenPaintData &data) override; | ||
47 | virtual void postPaintScreen(); | 48 | void postPaintScreen() override; | ||
48 | virtual bool isActive() const; | 49 | bool isActive() const override; | ||
49 | 50 | | |||
50 | int requestedEffectChainPosition() const override { | 51 | int requestedEffectChainPosition() const override { | ||
51 | return 50; | 52 | return 50; | ||
52 | } | 53 | } | ||
53 | 54 | | |||
54 | static bool supported(); | 55 | static bool supported(); | ||
55 | static void convertFromGLImage(QImage &img, int w, int h); | 56 | static void convertFromGLImage(QImage &img, int w, int h); | ||
56 | public Q_SLOTS: | 57 | public Q_SLOTS: | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |