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

Method create

Source/BoomScrollLayer.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28USING_NS_AX;
29
30BoomScrollLayer* BoomScrollLayer::create(std::vector<ax::Layer*> layers, int currentPage)
31{
32 BoomScrollLayer* pRet = new BoomScrollLayer();
33 if (pRet->init(layers, currentPage))
34 {
35 pRet->autorelease();
36 return pRet;
37 }
38 else
39 {
40 delete pRet;
41 pRet = nullptr;
42 return nullptr;
43 }
44}
45
46void BoomScrollLayer::selectPage(int current)
47{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected