Add mouse cursor handling

This commit is contained in:
elasota
2019-12-22 00:35:30 -05:00
parent 8354d13a84
commit eed82e2960
32 changed files with 835 additions and 72 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include "IGpColorCursor.h"
#include "GpWindows.h"
class GpColorCursor_Win32 final : public IGpColorCursor
{
public:
void Destroy() override;
const HCURSOR &GetHCursor() const;
void IncRef();
void DecRef();
static GpColorCursor_Win32 *Load(const wchar_t *path);
private:
GpColorCursor_Win32(HCURSOR cursor);
~GpColorCursor_Win32();
HCURSOR m_cursor;
int m_refCount;
};