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

Method create

core/ui/UIHBox.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36HBox::~HBox() {}
37
38HBox* HBox::create()
39{
40 HBox* widget = new HBox();
41 if (widget->init())
42 {
43 widget->autorelease();
44 return widget;
45 }
46 AX_SAFE_DELETE(widget);
47 return nullptr;
48}
49
50HBox* HBox::create(const Vec2& size)
51{

Callers

nothing calls this directly

Calls 3

autoreleaseMethod · 0.80
initMethod · 0.45
initWithSizeMethod · 0.45

Tested by

no test coverage detected