24 lines
483 B
C++
24 lines
483 B
C++
#ifndef U32BACKEND_HPP
|
|
#define U32BACKEND_HPP
|
|
|
|
#include <QPixmap>
|
|
#include <windows.h>
|
|
|
|
#define PLATFORM_CAPABILITY_PID
|
|
#define PLATFORM_CAPABILITY_ACTIVEWINDOW
|
|
#define PLATFORM_CAPABILITY_CURSOR
|
|
|
|
class PlatformBackend {
|
|
public:
|
|
std::tuple<QPoint, QPixmap> getCursor();
|
|
DWORD pid();
|
|
static PlatformBackend &inst() {
|
|
static PlatformBackend inst;
|
|
return inst;
|
|
}
|
|
WId getActiveWID();
|
|
bool filenameValid(QString name);
|
|
};
|
|
|
|
#endif // U32BACKEND_HPP
|