forked from quickshell/quickshell
wayland/screencopy: add screencopy
This commit is contained in:
parent
918dd2392d
commit
cd429142a4
37 changed files with 3149 additions and 3 deletions
25
src/wayland/screencopy/wlr_screencopy/wlr_screencopy.hpp
Normal file
25
src/wayland/screencopy/wlr_screencopy/wlr_screencopy.hpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue