// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Platform module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_PLATFORM_SDL2_CURSORIMPL_HPP #define NAZARA_PLATFORM_SDL2_CURSORIMPL_HPP #include #include #include #include #include #include namespace Nz { class CursorImpl { public: CursorImpl(const Image& image, const Vector2i& hotSpot); CursorImpl(SystemCursor cursor); CursorImpl(const CursorImpl&) = delete; CursorImpl(CursorImpl&&) noexcept = default; ~CursorImpl(); SDL_Cursor* GetCursor(); CursorImpl& operator=(const CursorImpl&) = delete; CursorImpl& operator=(CursorImpl&&) noexcept = default; private: MovablePtr m_cursor; MovablePtr m_surface; Image m_cursorImage; }; } #endif // NAZARA_PLATFORM_SDL2_CURSORIMPL_HPP