kiritow d2d11aeec5 Update to SDL2.0.7, SDL_image 2.0.2
It seems that SDL_Mixer 2.0.2 is not built with any audio support.
No newer version of SDL_ttf found.
2017-12-31 17:57:20 +08:00

34 lines
668 B
C++

#pragma once
#include "include.h"
#include "_SystemCursorType.h"
#include "Point.h"
#include "Surface.h"
#include "__Plugin.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<SDL_Cursor> _cur;
void _set(SDL_Cursor*);
void _set_no_delete(SDL_Cursor*);
SDL_Cursor* _get();
void _clear();
friend class _internal::Plugin;
};
#include "end_code.h"