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

Method dispatchEvent

core/ui/UIScrollView.cpp:1235–1247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1233}
1234
1235void ScrollView::dispatchEvent(EventType eventType)
1236{
1237 this->retain();
1238 if (_eventCallback)
1239 {
1240 _eventCallback(this, eventType);
1241 }
1242 if (_ccEventCallback)
1243 {
1244 _ccEventCallback(this, static_cast<int>(eventType));
1245 }
1246 this->release();
1247}
1248
1249void ScrollView::addEventListener(const ccScrollViewCallback& callback)
1250{

Callers 15

updateMethod · 0.45
updateMethod · 0.45
handleTouchesBeginMethod · 0.45
handleTouchesMoveMethod · 0.45
cancelAllTouchesMethod · 0.45
onGLFWMouseCallBackMethod · 0.45

Calls 2

retainMethod · 0.45
releaseMethod · 0.45

Tested by 5

onLeftKeyPressedMethod · 0.36
onRightKeyPressedMethod · 0.36
onUpKeyPressedMethod · 0.36
onDownKeyPressedMethod · 0.36
onEnterMethod · 0.36