22 #ifndef GRAPHICS_CURSORMAN_H 23 #define GRAPHICS_CURSORMAN_H 25 #include "common/scummsys.h" 26 #include "common/stack.h" 27 #include "common/singleton.h" 28 #include "graphics/cursor.h" 29 #include "graphics/surface.h" 88 void pushCursor(
const void *buf, uint w, uint h,
int hotspotX,
int hotspotY, uint32 keycolor,
bool dontScale =
false,
const Graphics::PixelFormat *format = NULL,
const byte *mask =
nullptr);
110 void pushCursor(
const Surface &surf,
int hotspotX,
int hotspotY, uint32 keycolor,
bool dontScale =
false,
const byte *mask =
nullptr);
141 void replaceCursor(
const void *buf, uint w, uint h,
int hotspotX,
int hotspotY, uint32 keycolor,
bool dontScale =
false,
const Graphics::PixelFormat *format =
nullptr,
const byte *mask =
nullptr);
160 void replaceCursor(
const Surface &surf,
int hotspotX,
int hotspotY, uint32 keycolor,
bool dontScale =
false,
const byte *mask =
nullptr);
244 void lock(
bool locked);
281 Cursor() : _mask(0), _visible(false), _hotspotX(0), _hotspotY(0), _keycolor(0), _dontScale(false), _size(0) {}
283 Cursor(
const Surface &surf,
int hotspotX,
int hotspotY, uint32 keycolor,
bool dontScale,
const byte *mask);
295 Palette() : _data(0), _start(0), _num(0), _size(0), _disabled(false) {}
297 Palette(
const byte *colors, uint start, uint num);
307 #define CursorMan (::Graphics::CursorManager::instance())
void replaceCursor(const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale=false, const Graphics::PixelFormat *format=nullptr, const byte *mask=nullptr)
void pushCursorPalette(const byte *colors, uint start, uint num)
bool supportsCursorPalettes()
Definition: cursorman.h:42
void setDefaultArrowCursor(bool push=false)
Definition: formatinfo.h:28
void disableCursorPalette(bool disable)
bool showMouse(bool visible)
void replaceCursorPalette(const byte *colors, uint start, uint num)
void pushCursor(const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale=false, const Graphics::PixelFormat *format=NULL, const byte *mask=nullptr)
Definition: singleton.h:42