1 /*! 2 @file 3 @author Albert Semenov 4 @date 11/2009 5 @module 6 */ 7 8 #ifndef POINTER_MANAGER_H_ 9 #define POINTER_MANAGER_H_ 10 11 #include "ResourceW32Pointer.h" 12 13 namespace input 14 { 15 16 class PointerManager 17 { 18 public: 19 PointerManager(); 20 21 void createPointerManager(size_t _handle); 22 void destroyPointerManager(); 23 24 void setPointerVisible(bool _value); 25 void setPointerName(const std::string& _name); 26 27 void loadPointerResources(); 28 29 private: 30 void notifyChangeMousePointer(const std::string& _name); 31 void setPointerHandle(size_t _id); 32 bool isMouseInClient(); 33 void setPointer(const std::string& _name); 34 35 private: 36 typedef std::map<std::string, size_t> MapPointer; 37 MapPointer mMapGuiPointer; 38 size_t mHwnd; 39 bool mManagerPointer; 40 }; 41 42 } // namespace input 43 44 #endif // POINTER_MANAGER_H_ 45