7#ifndef MYGUI_MENU_ITEM_H_
8#define MYGUI_MENU_ITEM_H_
32 void setCaption(
const UString& _value)
override;
35 void setFontName(
const std::string& _value)
override;
38 void setFontHeight(
int _value)
override;
41 void setItemName(
const UString& _value);
43 const UString& getItemName()
const;
46 void setItemData(
Any _value);
49 template <
typename ValueType>
52 return mOwner->getItemData<ValueType>(
this, _throw);
59 void setItemId(
const std::string& _value);
61 const std::string& getItemId()
const;
64 size_t getItemIndex()
const;
70 template <
typename Type>
73 return mOwner->createItemChildT<Type>(
this);
82 void setItemChildVisible(
bool _value);
90 bool getItemChecked()
const;
91 void setItemChecked(
bool _value);
95 IntSize _getContentSize()
const;
98 void initialiseOverride()
override;
99 void shutdownOverride()
override;
101 void setPropertyOverride(
const std::string& _key,
const std::string& _value)
override;
103 void onWidgetCreated(
Widget* _widget)
override;
#define MYGUI_RTTI_DERIVED(DerivedType)
A UTF-16 string with implicit conversion to/from std::string and std::wstring.