00001 #ifndef __RE_XCursor__ 00002 #define __RE_XCursor__ 00003 00004 #include "RE_API.h" 00005 #include "RE_Cursor.h" 00006 #include <X11/Xlib.h> 00007 00008 class RE_Render; 00009 class RE_XServer; 00010 00011 class RE_API RE_XCursor : public RE_Cursor { 00012 public: 00013 RE_XCursor(); 00014 RE_XCursor(RE_XServer *newserver, const char *name); 00015 virtual ~RE_XCursor(); 00016 00017 virtual RE_IDType getDeviceId(RE_IDType wid); 00018 virtual void unload(); 00019 00020 private: 00021 void loadCursor(RE_IDType wid); 00022 00023 void loadOldCursor(RE_IDType wid, const char *filename); 00024 void loadPNGCursor(RE_IDType wid, const char *filename, 00025 int x, int y); 00026 00027 Pixmap myCursorData; 00028 Pixmap myMaskData; 00029 Cursor myCursor; 00030 RE_XServer *myServer; 00031 bool myCursorCreated; 00032 }; 00033 #endif
1.5.9