mapleelpam/programnode-translator — Issue #219: (生成代碼測試）Event listener中CallBack Function Type
Author: zhaoshihun
Created: 2011-10-08 06:25:12+00:00
State: open

對於AS中類似問題
.AS) protected function onInput(event:TextEvent):void {...}
这样的listener，應該翻譯成下面的CPP代碼：
.H)
protected:
virtual void onInput(::flash::events::TextEventPtrevent);
static void static_onInput( ObjectPtr p, ::flash::events::EventPtrevent){ ((ISeeYou*)(Object*)p)->onInput(（flash::events::TextEvent*)(Object*)event); }
.CPP)
void ISeeYou::onInput(::flash::events::TextEventPtr event){...}