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

Method create

core/ui/UIText.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53Text::~Text() {}
54
55Text* Text::create()
56{
57 Text* widget = new Text();
58 if (widget->init())
59 {
60 widget->autorelease();
61 return widget;
62 }
63 AX_SAFE_DELETE(widget);
64 return nullptr;
65}
66
67bool Text::init()
68{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected