Files
Aerofoil/GpCommon/GpCursor_Win32.h

26 lines
409 B
C
Raw Permalink Normal View History

2019-12-22 00:35:30 -05:00
#pragma once
2020-02-23 20:21:04 -05:00
#include "IGpCursor_Win32.h"
2019-12-22 00:35:30 -05:00
#include "GpWindows.h"
2020-02-23 20:21:04 -05:00
class GpCursor_Win32 final : public IGpCursor_Win32
2019-12-22 00:35:30 -05:00
{
public:
void Destroy() override;
const HCURSOR &GetHCursor() const override;
2019-12-22 00:35:30 -05:00
void IncRef() override;
void DecRef() override;
2019-12-22 00:35:30 -05:00
2020-02-23 20:21:04 -05:00
static IGpCursor_Win32 *Load(const wchar_t *path);
2019-12-22 00:35:30 -05:00
private:
2020-02-23 20:21:04 -05:00
GpCursor_Win32(HCURSOR cursor);
~GpCursor_Win32();
2019-12-22 00:35:30 -05:00
HCURSOR m_cursor;
int m_refCount;
};