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

Method create

core/ui/UITextBMFont.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44TextBMFont::~TextBMFont() {}
45
46TextBMFont* TextBMFont::create()
47{
48 TextBMFont* widget = new TextBMFont();
49 if (widget->init())
50 {
51 widget->autorelease();
52 return widget;
53 }
54 AX_SAFE_DELETE(widget);
55 return nullptr;
56}
57
58TextBMFont* TextBMFont::create(std::string_view text, std::string_view filename)
59{

Callers

nothing calls this directly

Calls 4

autoreleaseMethod · 0.80
setFntFileMethod · 0.80
initMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected