22 #ifndef __MYGUI_WIDGET_USER_DATA_H__
23 #define __MYGUI_WIDGET_USER_DATA_H__
39 void setUserString(
const std::string& _key,
const std::string& _value);
42 const std::string& getUserString(
const std::string& _key)
const;
48 bool clearUserString(
const std::string& _key);
51 bool isUserString(
const std::string& _key)
const;
54 void clearUserStrings();
57 void setUserData(
Any _data);
60 template <
typename ValueType>
61 ValueType* getUserData(
bool _throw =
true)
63 return mUserData.castType<ValueType>(_throw);
67 void _setInternalData(
Any _data);
69 template <
typename ValueType>
70 ValueType* _getInternalData(
bool _throw =
true)
72 return mInternalData.castType<ValueType>(_throw);
86 #endif // __MYGUI_WIDGET_USER_DATA_H__