KShare/platformspecifics/x11/x11backend.hpp

22 lines
424 B
C++
Raw Normal View History

2017-05-13 11:03:46 +02:00
#ifndef X11BACKEND_HPP
#define X11BACKEND_HPP
#include <QPixmap>
#define PLATFORM_CAPABILITY_PID
#define PLATFORM_CAPABILITY_ACTIVEWINDOW
#define PLATFORM_CAPABILITY_CURSOR
2017-05-13 11:03:46 +02:00
class PlatformBackend {
public:
2017-05-13 23:33:36 +02:00
std::tuple<QPoint, QPixmap> getCursor();
pid_t pid();
2017-05-13 11:03:46 +02:00
static PlatformBackend &inst() {
static PlatformBackend inst;
return inst;
}
WId getActiveWID();
2017-05-13 11:03:46 +02:00
};
#endif // X11BACKEND_HPP