27 MYGUI_ASSERT(parent,
"MenuItem must have parent MenuControl");
32 MYGUI_ASSERT(parent,
"MenuItem must have parent MenuControl");
152 if (_key ==
"MenuItemId")
156 else if (_key ==
"MenuItemType")
157 setItemType(utility::parseValue<MenuItemType>(_value));
160 else if (_key ==
"MenuItemChecked")
191 void MenuItem::updateCheck()
193 if (mCheck !=
nullptr)
204 mCheckValue = _value;
virtual void setFontHeight(int _value)
virtual void setFontName(const std::string &_value)
virtual void setCaption(const UString &_value)
ISubWidgetText * getSubWidgetText()
virtual const UString & getCaption()
#define MYGUI_ASSERT(exp, dest)
Type * castType(bool _throw=true)
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
virtual IntSize getTextSize()