KShare/platformspecifics/x11/x11backend.hpp
ArsenArsen 2bd01bf181 Add active window capture
Not on Mac. I still don't have a way to test there.
2017-06-27 11:33:11 +02:00

22 lines
424 B
C++

#ifndef X11BACKEND_HPP
#define X11BACKEND_HPP
#include <QPixmap>
#define PLATFORM_CAPABILITY_PID
#define PLATFORM_CAPABILITY_ACTIVEWINDOW
#define PLATFORM_CAPABILITY_CURSOR
class PlatformBackend {
public:
std::tuple<QPoint, QPixmap> getCursor();
pid_t pid();
static PlatformBackend &inst() {
static PlatformBackend inst;
return inst;
}
WId getActiveWID();
};
#endif // X11BACKEND_HPP