MenuItemFont * MenuItemFont::create(const std::string& value) { MenuItemFont *ret = new (std::nothrow) MenuItemFont(); ret->initWithString(value, (const ccMenuCallback&)nullptr); ret->autorelease(); return ret; }
// XXX: deprecated MenuItemFont * MenuItemFont::create(const std::string& value, Ref* target, SEL_MenuHandler selector) { MenuItemFont *ret = new (std::nothrow) MenuItemFont(); ret->initWithString(value, target, selector); ret->autorelease(); return ret; }
MenuItemFont * MenuItemFont::create(const char *value) { MenuItemFont *pRet = new MenuItemFont(); pRet->initWithString(value, (const ccMenuCallback&)nullptr); pRet->autorelease(); return pRet; }
MenuItemFont * MenuItemFont::create(const std::string& value, const ccMenuCallback& callback) { MenuItemFont *ret = new MenuItemFont(); ret->initWithString(value, callback); ret->autorelease(); return ret; }
// XXX: deprecated MenuItemFont * MenuItemFont::create(const char *value, Object* target, SEL_MenuHandler selector) { MenuItemFont *pRet = new MenuItemFont(); pRet->initWithString(value, target, selector); pRet->autorelease(); return pRet; }