MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / create

Method create

Source/UILayer.cpp:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "base/Director.h"
25
26UILayer* UILayer::create()
27{
28 UILayer* pRet = new UILayer();
29 if (pRet->init())
30 {
31 pRet->autorelease();
32 return pRet;
33 }
34 else
35 {
36 delete pRet;
37 pRet = nullptr;
38 return nullptr;
39 }
40}
41
42bool UILayer::init()
43{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected