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"
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);
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())
Definition: singleton.h:42
Definition: cursorman.h:43
void setDefaultArrowCursor(bool push=false)
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)
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)
bool supportsCursorPalettes()
void pushCursorPalette(const byte *colors, uint start, uint num)
void disableCursorPalette(bool disable)
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)
bool showMouse(bool visible)
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)
void replaceCursorPalette(const byte *colors, uint start, uint num)
void replaceCursor(const Graphics::Cursor *cursor, frac_t scaleX=FRAC_ONE, frac_t scaleY=FRAC_ONE)
Definition: atari-screen.h:42
int32 frac_t
Definition: frac.h:52
Definition: formatinfo.h:28
Definition: atari-cursor.h:35