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

Method create

core/ui/UIScale9Sprite.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32using namespace ax::ui;
33
34Scale9Sprite* Scale9Sprite::create()
35{
36 Scale9Sprite* ret = new Scale9Sprite();
37 if (ret->init())
38 {
39 ret->autorelease();
40 return ret;
41 }
42 AX_SAFE_DELETE(ret);
43 return nullptr;
44}
45
46Scale9Sprite* Scale9Sprite::create(std::string_view filename, const Rect& rect, const Rect& capInsets)
47{

Callers

nothing calls this directly

Calls 4

createFunction · 0.85
autoreleaseMethod · 0.80
initMethod · 0.45
initWithFileMethod · 0.45

Tested by

no test coverage detected