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

Method initWithString

core/2d/MenuItem.cpp:301–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301bool MenuItemAtlasFont::initWithString(std::string_view value,
302 std::string_view charMapFile,
303 int itemWidth,
304 int itemHeight,
305 char startCharMap,
306 const ccMenuCallback& callback)
307{
308 AXASSERT(value.size() != 0, "value length must be greater than 0");
309 LabelAtlas* label = LabelAtlas::create(value, charMapFile, itemWidth, itemHeight, startCharMap);
310 if (MenuItemLabel::initWithLabel(label, callback))
311 {
312 // do something ?
313 }
314 return true;
315}
316
317//
318// CCMenuItemFont

Callers 3

createMethod · 0.45

Calls 3

createFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected