mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
28 lines
582 B
C++
28 lines
582 B
C++
#pragma once
|
|
|
|
#include "IGpCursor_Win32.h"
|
|
#include "GpWindows.h"
|
|
|
|
struct IGpAllocator;
|
|
|
|
class GpColorCursor_Win32 final : public IGpCursor_Win32
|
|
{
|
|
public:
|
|
void Destroy() override;
|
|
|
|
const HCURSOR &GetHCursor() const override;
|
|
|
|
void IncRef() override;
|
|
void DecRef() override;
|
|
|
|
static IGpCursor_Win32 *Create(IGpAllocator *alloc, size_t width, size_t height, const void *pixelDataRGBA, size_t hotSpotX, size_t hotSpotY);
|
|
|
|
private:
|
|
GpColorCursor_Win32(IGpAllocator *alloc, HCURSOR cursor);
|
|
~GpColorCursor_Win32();
|
|
|
|
HCURSOR m_cursor;
|
|
int m_refCount;
|
|
IGpAllocator *m_alloc;
|
|
};
|