7#ifndef MYGUI_WIDGET_USER_DATA_H_
8#define MYGUI_WIDGET_USER_DATA_H_
23 void setUserString(
const std::string& _key,
const std::string& _value);
26 const std::string& getUserString(
const std::string& _key)
const;
32 bool clearUserString(
const std::string& _key);
35 bool isUserString(
const std::string& _key)
const;
38 void clearUserStrings();
41 void setUserData(
Any _data);
44 template <
typename ValueType>
47 return mUserData.castType<ValueType>(_throw);
51 void _setInternalData(
Any _data);
53 template <
typename ValueType>
56 return mInternalData.castType<ValueType>(_throw);
ValueType * getUserData(bool _throw=true) const
virtual ~UserData()=default
ValueType * _getInternalData(bool _throw=true) const
std::map< std::string, std::string > MapString