2bd01bf181
Not on Mac. I still don't have a way to test there.
22 lines
424 B
C++
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
|