7#ifndef MYGUI_MENU_ITEM_H_
8#define MYGUI_MENU_ITEM_H_
30 void setFontName(std::string_view
_value)
override;
33 void setFontHeight(
int _value)
override;
38 const UString& getItemName()
const;
44 template<
typename ValueType>
54 void setItemId(std::string_view
_id);
56 const std::string& getItemId()
const;
59 size_t getItemIndex()
const;
65 template<
typename Type>
68 return mOwner->createItemChildT<
Type>(
this);
77 void setItemChildVisible(
bool _visible);
85 bool getItemChecked()
const;
86 void setItemChecked(
bool _value);
90 IntSize _getContentSize()
const;
93 void initialiseOverride()
override;
94 void shutdownOverride()
override;
96 void setPropertyOverride(std::string_view
_key, std::string_view
_value)
override;
105 IntSize mMinSize{10, 10};
106 Widget* mCheck{
nullptr};
107 bool mCheckValue{
false};
#define MYGUI_RTTI_DERIVED(DerivedType)
A UTF-16 string with implicit conversion to/from std::string and std::wstring.