7 #ifndef __MYGUI_WIDGET_USER_DATA_H__
8 #define __MYGUI_WIDGET_USER_DATA_H__
24 void setUserString(
const std::string& _key,
const std::string& _value);
27 const std::string& getUserString(
const std::string& _key)
const;
33 bool clearUserString(
const std::string& _key);
36 bool isUserString(
const std::string& _key)
const;
39 void clearUserStrings();
42 void setUserData(
Any _data);
45 template <
typename ValueType>
46 ValueType* getUserData(
bool _throw =
true)
const
48 return mUserData.castType<ValueType>(_throw);
52 void _setInternalData(
Any _data);
54 template <
typename ValueType>
55 ValueType* _getInternalData(
bool _throw =
true)
const
57 return mInternalData.castType<ValueType>(_throw);
71 #endif // __MYGUI_WIDGET_USER_DATA_H__