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

Method create

core/ui/UILoadingBar.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62LoadingBar::~LoadingBar() {}
63
64LoadingBar* LoadingBar::create()
65{
66 LoadingBar* widget = new LoadingBar();
67 if (widget->init())
68 {
69 widget->autorelease();
70 return widget;
71 }
72 AX_SAFE_DELETE(widget);
73 return nullptr;
74}
75
76LoadingBar* LoadingBar::create(std::string_view textureName, float percentage)
77{

Callers

nothing calls this directly

Calls 5

createFunction · 0.85
autoreleaseMethod · 0.80
initMethod · 0.45
loadTextureMethod · 0.45
setPercentMethod · 0.45

Tested by

no test coverage detected