22 #ifndef __MYGUI_MENU_ITEM_H__
23 #define __MYGUI_MENU_ITEM_H__
44 virtual
void setCaption(const
UString& _value);
47 void setItemName(const
UString& _value);
52 void setItemData(
Any _value);
55 template <typename ValueType>
56 ValueType* getItemData(
bool _throw = true)
58 return mOwner->getItemData<ValueType>(
this, _throw);
65 void setItemId(
const std::string& _value);
67 const std::string& getItemId();
70 size_t getItemIndex();
76 template <
typename Type>
77 Type* createItemChildT()
79 return mOwner->createItemChildT<Type>(
this);
88 void setItemChildVisible(
bool _value);
96 bool getItemChecked()
const;
97 void setItemChecked(
bool _value);
104 virtual void initialiseOverride();
105 virtual void shutdownOverride();
107 virtual void setPropertyOverride(
const std::string& _key,
const std::string& _value);
109 virtual void onWidgetCreated(
Widget* _widget);
123 #endif // __MYGUI_MENU_ITEM_H__