#pragma once #include "include.h" #include "begin_code.h" class Cursor { public: Cursor()=default; Cursor(SystemCursorType); Cursor(Surface surf,Point hotspot= {0,0}); static Cursor GetActiveCursor(); static Cursor GetDefaultCursor(); static void setShow(bool); static bool isShow(); void activate(); void release(); private: std::shared_ptr _cur; void _set(SDL_Cursor*); void _set_no_delete(SDL_Cursor*); SDL_Cursor* _get(); void _clear(); }; #include "end_code.h"