Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSMouseCursor.h

Go to the documentation of this file.
00001 #ifndef CSMouseCursor_h
00002 #define CSMouseCursor_h
00003 
00004 // USES SDL_Surface
00005 
00006 #ifdef WIN32
00007 #pragma warning(disable : 4786 )
00008 #endif
00009 
00010 #include <SDL.h>
00011 #include <string>
00012 #include "CSLog.h"
00013 
00014 class CSPicture;
00015 
00016 class CSMouseCursor 
00017 {
00018     private:
00019         CSPicture *mPicture;
00020         int mVisible;
00021         int mX;
00022         int mY;
00023     public:
00024         CSMouseCursor(std::string pictureName);
00025         virtual ~CSMouseCursor();
00026         static const char *CLASS;
00027         virtual std::string getType() {return (std::string) CLASS;}
00028 
00029         virtual void paint(SDL_Surface *destination, SDL_Rect *parentViewport);
00030         void setPosition(int x, int y);
00031 
00032         void hide();
00033         void show();
00034 };
00035 
00036 
00037 #endif // CSMouseCursor_h

Generated on Wed Jul 14 00:43:31 2004 for CSLib by doxygen 1.3.6