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

Method create

core/ui/UICheckBox.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39CheckBox::~CheckBox() {}
40
41CheckBox* CheckBox::create()
42{
43 CheckBox* widget = new CheckBox();
44 if (widget->init())
45 {
46 widget->autorelease();
47 return widget;
48 }
49 AX_SAFE_DELETE(widget);
50 return nullptr;
51}
52
53CheckBox* CheckBox::create(std::string_view backGround,
54 std::string_view backGroundSelected,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected