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

Method create

Source/DropDownLayer.cpp:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31USING_NS_AX;
32
33DropDownLayer* DropDownLayer::create(Node* scrollLayer, const char* label)
34{
35 auto pRet = new(std::nothrow) DropDownLayer();
36
37 if (pRet && pRet->init(scrollLayer, label))
38 {
39 pRet->autorelease();
40 return pRet;
41 }
42 else
43 {
44 AX_SAFE_DELETE(pRet);
45 return nullptr;
46 }
47}
48
49bool DropDownLayer::init(Node* scrollLayer, const char* label)
50{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected