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

Method initWithSpriteFrame

core/ui/UIScale9Sprite.cpp:161–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool Scale9Sprite::initWithSpriteFrame(SpriteFrame* spriteFrame, const Rect& capInsets)
162{
163 // calls super
164 bool ret = Sprite::initWithSpriteFrame(spriteFrame);
165 setupSlice9(getTexture(), capInsets);
166 return ret;
167}
168
169bool Scale9Sprite::initWithSpriteFrameName(std::string_view spriteFrameName, const Rect& capInsets)
170{

Callers 10

loadTextureMethod · 0.45
loadTextureNormalMethod · 0.45
loadTexturePressedMethod · 0.45
loadTextureDisabledMethod · 0.45
loadTextureMethod · 0.45
createWithSpriteFrameMethod · 0.45
copyToMethod · 0.45
loadTextureNormalMethod · 0.45
loadTexturePressedMethod · 0.45
loadTextureDisabledMethod · 0.45

Calls 1

getTextureFunction · 0.50

Tested by

no test coverage detected