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;
#define MYGUI_ASSERT(exp, dest)
Type * castType(bool _throw=true)
virtual IntSize getTextSize() const
ISubWidgetText * getSubWidgetText() const
virtual void setFontHeight(int _value)
virtual const UString & getCaption() const
virtual void setFontName(const std::string &_value)
virtual void setCaption(const UString &_value)
A UTF-16 string with implicit conversion to/from std::string and std::wstring.