Changeset View
Changeset View
Standalone View
Standalone View
effects/screenshot/screenshot.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
49 | void postPaintScreen() override; | 49 | void postPaintScreen() override; | ||
50 | bool isActive() const override; | 50 | bool isActive() const override; | ||
51 | 51 | | |||
52 | int requestedEffectChainPosition() const override { | 52 | int requestedEffectChainPosition() const override { | ||
53 | return 50; | 53 | return 50; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | static bool supported(); | 56 | static bool supported(); | ||
57 | static void convertFromGLImage(QImage &img, int w, int h); | | |||
58 | public Q_SLOTS: | 57 | public Q_SLOTS: | ||
59 | Q_SCRIPTABLE void screenshotForWindow(qulonglong winid, int mask = 0); | 58 | Q_SCRIPTABLE void screenshotForWindow(qulonglong winid, int mask = 0); | ||
60 | /** | 59 | /** | ||
61 | * Starts an interactive window screenshot session. The user can select a window to | 60 | * Starts an interactive window screenshot session. The user can select a window to | ||
62 | * screenshot. | 61 | * screenshot. | ||
63 | * | 62 | * | ||
64 | * Once the window is selected the screenshot is saved into a file and the path gets | 63 | * Once the window is selected the screenshot is saved into a file and the path gets | ||
65 | * returned to the DBus peer. | 64 | * returned to the DBus peer. | ||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |