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

Method create

core/ui/UIRadioButton.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected