OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SDLUtil::SDLCursorManager Class Reference

#include <sdlcursormanager.hpp>

Collaboration diagram for SDLUtil::SDLCursorManager:

Public Member Functions

 SDLCursorManager ()
 
virtual ~SDLCursorManager ()
 
virtual void setEnabled (bool enabled)
 sets whether to actively manage cursors or not More...
 
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", "ibeam", etc) More...
 
virtual void createCursor (const std::string &name, int rotDegrees, osg::Image *image, Uint8 hotspot_x, Uint8 hotspot_y)
 

Private Types

typedef std::map< std::string,
SDL_Cursor * > 
CursorMap
 

Private Member Functions

void _createCursorFromResource (const std::string &name, int rotDegrees, osg::Image *image, Uint8 hotspot_x, Uint8 hotspot_y)
 
void _putPixel (SDL_Surface *surface, int x, int y, Uint32 pixel)
 
void _setGUICursor (const std::string &name)
 

Private Attributes

CursorMap mCursorMap
 
std::string mCurrentCursor
 
bool mEnabled
 
bool mInitialized
 

Member Typedef Documentation

typedef std::map<std::string, SDL_Cursor*> SDLUtil::SDLCursorManager::CursorMap
private

Constructor & Destructor Documentation

SDLUtil::SDLCursorManager::SDLCursorManager ( )
SDLUtil::SDLCursorManager::~SDLCursorManager ( )
virtual

Member Function Documentation

void SDLUtil::SDLCursorManager::_createCursorFromResource ( const std::string &  name,
int  rotDegrees,
osg::Image *  image,
Uint8  hotspot_x,
Uint8  hotspot_y 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void SDLUtil::SDLCursorManager::_putPixel ( SDL_Surface *  surface,
int  x,
int  y,
Uint32  pixel 
)
private
void SDLUtil::SDLCursorManager::_setGUICursor ( const std::string &  name)
private

Here is the caller graph for this function:

void SDLUtil::SDLCursorManager::createCursor ( const std::string &  name,
int  rotDegrees,
osg::Image *  image,
Uint8  hotspot_x,
Uint8  hotspot_y 
)
virtual

Here is the call graph for this function:

Here is the caller graph for this function:

void SDLUtil::SDLCursorManager::cursorChanged ( const std::string &  name)
virtual

Tell the manager that the cursor has changed, giving the name of the cursor we changed to ("arrow", "ibeam", etc)

Here is the call graph for this function:

Here is the caller graph for this function:

void SDLUtil::SDLCursorManager::setEnabled ( bool  enabled)
virtual

sets whether to actively manage cursors or not

Here is the call graph for this function:

Member Data Documentation

std::string SDLUtil::SDLCursorManager::mCurrentCursor
private
CursorMap SDLUtil::SDLCursorManager::mCursorMap
private
bool SDLUtil::SDLCursorManager::mEnabled
private
bool SDLUtil::SDLCursorManager::mInitialized
private

The documentation for this class was generated from the following files: