7#ifndef MYGUI_WIDGET_USER_DATA_H_
8#define MYGUI_WIDGET_USER_DATA_H_
23 void setUserString(std::string_view _key, std::string_view _value);
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);
bool clearUserString(std::string_view _key)
bool isUserString(std::string_view _key) const
void setUserString(std::string_view _key, std::string_view _value)
std::string_view getUserString(std::string_view _key) const
ValueType * getUserData(bool _throw=true) const
virtual ~UserData()=default
void setUserData(Any _data)
ValueType * _getInternalData(bool _throw=true) const
const MapString & getUserStrings() const
std::map< std::string, std::string, std::less<> > MapString