MCPcopy Create free account
hub / github.com/axmolengine/axmol / createWithSpriteFrameName

Method createWithSpriteFrameName

core/ui/UIScale9Sprite.cpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97Scale9Sprite* Scale9Sprite::createWithSpriteFrameName(std::string_view spriteFrameName, const Rect& capInsets)
98{
99 Scale9Sprite* ret = new Scale9Sprite();
100 if (ret->initWithSpriteFrameName(spriteFrameName, capInsets))
101 {
102 ret->autorelease();
103 return ret;
104 }
105 AX_SAFE_DELETE(ret);
106 return nullptr;
107}
108
109Scale9Sprite* Scale9Sprite::createWithSpriteFrameName(std::string_view spriteFrameName)
110{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80

Tested by

no test coverage detected