Main Page | Class Hierarchy | Class List | File List | Class Members

aedCursor.h

00001 
00002 /*
00003   aedMouseCursor:
00004   A class to handle mouse Cursors 
00005   Initial design Rodrigo Hernandez,
00006   Idealy,it should remain completelly optional and somewhat independent from
00007   the whole library
00008 */
00009 
00010 #ifndef AEDCURSOR_H
00011 #define AEDCURSOR_H
00012 
00013 #include "SDL.h"
00014 #include "dllmacros.h"
00015 
00016 class DLLEXPORT aedCursor
00017 {
00018   public:
00019     aedCursor();
00020     ~aedCursor();
00021     inline void setAnchor(Uint8 x, Uint8 y)
00022     {
00023         xHot = x;
00024         yHot = y;
00025     };
00026     void setImage(SDL_Surface * Image);
00027     void render(SDL_Surface * Screen = NULL);
00028 
00029   private:
00030     Uint8 xHot;
00031     Uint8 yHot;
00032     SDL_Surface *CursorImage;
00033     SDL_Surface *SavedImage;
00034     SDL_Rect SavedRect;
00035 };
00036 #endif

Generated on Mon Mar 1 19:56:18 2004 for aedGUI by doxygen 1.3.6