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

Method initWithFile

core/ui/UIScale9Sprite.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133Scale9Sprite::~Scale9Sprite() {}
134
135bool Scale9Sprite::initWithFile(const Rect& capInsets, std::string_view file)
136{
137 // calls super
138 bool ret = Sprite::initWithFile(file);
139 setupSlice9(getTexture(), capInsets);
140 return ret;
141}
142
143bool Scale9Sprite::initWithFile(std::string_view filename)
144{

Callers 9

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

Calls 3

getCapInsetsMethod · 0.95
getTextureFunction · 0.50
equalsMethod · 0.45

Tested by

no test coverage detected