wayland/screencopy: add screencopy

This commit is contained in:
outfoxxed 2025-01-14 04:43:05 -08:00
parent 918dd2392d
commit cd429142a4
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
37 changed files with 3149 additions and 3 deletions

View file

@ -0,0 +1,25 @@
#pragma once
#include <qscreen.h>
#include <qwayland-wlr-screencopy-unstable-v1.h>
#include <qwaylandclientextension.h>
#include "../manager.hpp"
namespace qs::wayland::screencopy::wlr {
class WlrScreencopyManager
: public QWaylandClientExtensionTemplate<WlrScreencopyManager>
, public QtWayland::zwlr_screencopy_manager_v1 {
public:
ScreencopyContext* captureOutput(QScreen* screen, bool paintCursors, QRect region = QRect());
static WlrScreencopyManager* instance();
private:
explicit WlrScreencopyManager();
friend class WlrScreencopyContext;
};
} // namespace qs::wayland::screencopy::wlr