23 #ifndef __MYGUI_POINTER_MANAGER_H__
24 #define __MYGUI_POINTER_MANAGER_H__
48 bool load(
const std::string& _file);
53 void setVisible(
bool _visible);
60 void setPointer(
const std::string& _name);
62 void resetToDefaultPointer();
67 void setDeafultPointer(
const std::string& _value);
70 void setLayerName(
const std::string& _value);
73 IPointer* getByName(
const std::string& _name)
const;
84 #ifndef MYGUI_DONT_USE_OBSOLETE
86 MYGUI_OBSOLETE(
"use : void PointerManager::setVisible(bool _visible)")
87 void show() { setVisible(
true); }
88 MYGUI_OBSOLETE(
"use : void PointerManager::setVisible(bool _visible)")
89 void hide() { setVisible(
false); }
91 bool isShow() {
return isVisible(); }
93 #endif // MYGUI_DONT_USE_OBSOLETE
96 void _unlinkWidget(
Widget* _widget);
99 virtual Widget* baseCreateWidget(
WidgetStyle _style,
const std::string& _type,
const std::string& _skin,
const IntCoord& _coord,
Align _align,
const std::string& _layer,
const std::string& _name);
102 virtual void _destroyChildWidget(
Widget* _widget);
105 virtual void _destroyAllChildWidget();
109 void notifyFrameStart(
float _time);
110 void notifyChangeMouseFocus(
Widget* _widget);
111 void setPointer(
const std::string& _name,
Widget* _owner);
117 std::string mDefaultName;
120 std::string mLayerName;
121 std::string mSkinName;
126 std::string mCurrentMousePointer;
131 #endif // __MYGUI_POINTER_MANAGER_H__