33class ScreenShotDBusInterface2;
34struct ScreenShotWindowData;
35struct ScreenShotAreaData;
36struct ScreenShotScreenData;
82 void handleScreenAdded();
83 void handleScreenRemoved(
Output *screen);
90 void cancelWindowScreenShots();
91 void cancelAreaScreenShots();
92 void cancelScreenScreenShots();
94 void grabPointerImage(QImage &snapshot,
int xOffset,
int yOffset)
const;
95 QImage blitScreenshot(
const RenderTarget &renderTarget,
const RenderViewport &viewport,
const QRect &geometry, qreal devicePixelRatio = 1.0)
const;
97 std::vector<ScreenShotWindowData> m_windowScreenShots;
98 std::vector<ScreenShotAreaData> m_areaScreenShots;
99 std::vector<ScreenShotScreenData> m_screenScreenShots;
101 std::unique_ptr<ScreenShotDBusInterface2> m_dbusInterface2;
102 Output *m_paintedScreen =
nullptr;
107Q_DECLARE_OPERATORS_FOR_FLAGS(KWin::ScreenShotFlags)
Base class for all KWin effects.
Representation of a window used by/for Effect classes.
int requestedEffectChainPosition() const override
~ScreenShotEffect() override
void paintScreen(const RenderTarget &renderTarget, const RenderViewport &viewport, int mask, const QRegion ®ion, Output *screen) override
bool isActive() const override
QFuture< QImage > scheduleScreenShot(Output *screen, ScreenShotFlags flags={})
@ ScreenShotIncludeShadow
Include the window shadow.
@ ScreenShotNativeResolution
Take the screenshot at the native resolution.
@ ScreenShotIncludeCursor
Include the cursor.
@ ScreenShotIncludeDecoration
Include window titlebar and borders.