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

Method initWithCallback

core/2d/MenuItem.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool MenuItem::initWithCallback(const ccMenuCallback& callbackClick)
65{
66 setAnchorPoint(Vec2(0.5f, 0.5f));
67 _callbackClick = callbackClick;
68 _enabled = true;
69 _selected = false;
70 return true;
71}
72
73MenuItem::~MenuItem() {}
74

Callers 2

createMethod · 0.45
createWithCallbackMethod · 0.45

Calls 5

setSelectedIndexMethod · 0.95
getInstanceFunction · 0.85
pushBackMethod · 0.80
Vec2Class · 0.70
setAnchorPointFunction · 0.50

Tested by

no test coverage detected