1 #ifndef OPENMW_COMPONENTS_SDLUTIL_SDLCURSORMANAGER_H
2 #define OPENMW_COMPONENTS_SDLUTIL_SDLCURSORMANAGER_H
32 virtual void createCursor(
const std::string &name,
int rotDegrees, osg::Image* image, Uint8 hotspot_x, Uint8 hotspot_y);
35 void _createCursorFromResource(
const std::string &name,
int rotDegrees, osg::Image* image, Uint8 hotspot_x, Uint8 hotspot_y);
36 void _putPixel(SDL_Surface *surface,
int x,
int y, Uint32 pixel);
40 typedef std::map<std::string, SDL_Cursor*>
CursorMap;
virtual ~SDLCursorManager()
Definition: sdlcursormanager.cpp:163
Definition: sdlcursormanager.hpp:19
CursorMap mCursorMap
Definition: sdlcursormanager.hpp:41
void _setGUICursor(const std::string &name)
Definition: sdlcursormanager.cpp:209
virtual void createCursor(const std::string &name, int rotDegrees, osg::Image *image, Uint8 hotspot_x, Uint8 hotspot_y)
Definition: sdlcursormanager.cpp:214
virtual void setEnabled(bool enabled)
sets whether to actively manage cursors or not
Definition: sdlcursormanager.cpp:176
bool mEnabled
Definition: sdlcursormanager.hpp:44
std::map< std::string, SDL_Cursor * > CursorMap
Definition: sdlcursormanager.hpp:40
void _createCursorFromResource(const std::string &name, int rotDegrees, osg::Image *image, Uint8 hotspot_x, Uint8 hotspot_y)
Definition: sdlcursormanager.cpp:219
bool mInitialized
Definition: sdlcursormanager.hpp:45
std::string mCurrentCursor
Definition: sdlcursormanager.hpp:43
void _putPixel(SDL_Surface *surface, int x, int y, Uint32 pixel)
SDLCursorManager()
Definition: sdlcursormanager.cpp:157
virtual void cursorChanged(const std::string &name)
Tell the manager that the cursor has changed, giving the name of the cursor we changed to ("arrow"...
Definition: sdlcursormanager.cpp:196
const char * name
Definition: crashcatcher.cpp:59