KShare/platformspecifics/u32/u32backend.hpp

22 lines
421 B
C++
Raw Normal View History

2017-05-13 11:03:46 +02:00
#ifndef U32BACKEND_HPP
#define U32BACKEND_HPP
#include <QPixmap>
#include <windows.h>
2017-05-13 11:03:46 +02:00
#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();
DWORD pid();
2017-05-13 11:03:46 +02:00
static PlatformBackend &inst() {
static PlatformBackend inst;
return inst;
}
};
#endif // U32BACKEND_HPP