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

Method initWithSpriteFrameName

core/ui/UIScale9Sprite.cpp:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169bool Scale9Sprite::initWithSpriteFrameName(std::string_view spriteFrameName, const Rect& capInsets)
170{
171 // calls super
172 bool ret = Sprite::initWithSpriteFrameName(spriteFrameName);
173 setupSlice9(getTexture(), capInsets);
174 return ret;
175}
176
177bool Scale9Sprite::initWithSpriteFrameName(std::string_view spriteFrameName)
178{

Callers 9

loadTextureMethod · 0.45
loadTextureNormalMethod · 0.45
loadTexturePressedMethod · 0.45
loadTextureDisabledMethod · 0.45
setBackGroundImageMethod · 0.45
loadTextureNormalMethod · 0.45
loadTexturePressedMethod · 0.45
loadTextureDisabledMethod · 0.45

Calls 2

getCapInsetsMethod · 0.95
getTextureFunction · 0.50

Tested by

no test coverage detected