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);
26 std::string_view getUserString(std::string_view
_key)
const;
32 bool clearUserString(std::string_view
_key);
35 bool isUserString(std::string_view
_key)
const;
38 void clearUserStrings();
44 template<
typename ValueType>
53 template<
typename ValueType>
ValueType * getUserData(bool _throw=true) const
virtual ~UserData()=default
ValueType * _getInternalData(bool _throw=true) const
std::map< std::string, std::string, std::less<> > MapString