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 "common/frac.h" 29 #include "graphics/cursor.h" 30 #include "graphics/surface.h" 91 void pushCursor(
const void *buf, uint w, uint h,
int hotspotX,
int hotspotY, uint32 keycolor,
const Graphics::PixelFormat *format = NULL,
const byte *mask =
nullptr,
frac_t scaleX = FRAC_ONE,
frac_t scaleY = FRAC_ONE);
115 void pushCursor(
const Surface &surf,
int hotspotX,
int hotspotY, uint32 keycolor,
const byte *mask =
nullptr,
frac_t scaleX = FRAC_ONE,
frac_t scaleY = FRAC_ONE);
169 void replaceCursor(
const Surface &surf,
int hotspotX,
int hotspotY, uint32 keycolor,
const byte *mask =
nullptr,
frac_t scaleX = FRAC_ONE,
frac_t scaleY = FRAC_ONE);
257 void lock(
bool locked);
295 Cursor() : _mask(0), _visible(false), _hotspotX(0), _hotspotY(0), _keycolor(0), _scaleX(FRAC_ONE), _scaleY(FRAC_ONE), _size(0) {}
297 Cursor(
const Surface &surf,
int hotspotX,
int hotspotY, uint32 keycolor,
const byte *mask,
frac_t scaleX,
frac_t scaleY);
309 Palette() : _data(0), _start(0), _num(0), _size(0), _disabled(false) {}
311 Palette(
const byte *colors, uint start, uint num);
318 bool systemSupportsCursorMask(
const byte *mask, uint width, uint height);
323 #define CursorMan (::Graphics::CursorManager::instance())
void pushCursorPalette(const byte *colors, uint start, uint num)
bool supportsCursorPalettes()
void replaceCursor(const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, const Graphics::PixelFormat *format=nullptr, const byte *mask=nullptr, frac_t scaleX=FRAC_ONE, frac_t scaleY=FRAC_ONE)
Definition: cursorman.h:43
void pushCursor(const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, const Graphics::PixelFormat *format=NULL, const byte *mask=nullptr, frac_t scaleX=FRAC_ONE, frac_t scaleY=FRAC_ONE)
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)
int32 frac_t
Definition: frac.h:52
Definition: singleton.h:42