X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2FSWIG%2Fevents%2Ftimer-event.i;h=e6fb89afed52c3abe8c1dc662661cac913952d68;hp=a8a5f0ee86013409ebd9ceb8130da7e03d0ee592;hb=5bdacbc181f88698499b69199b584d05a2791454;hpb=a0bc72c2530d445a843cc0ad5dbe047f1f6c0883;ds=sidebyside diff --git a/plugins/dali-swig/SWIG/events/timer-event.i b/plugins/dali-swig/SWIG/events/timer-event.i index a8a5f0e..e6fb89a 100644 --- a/plugins/dali-swig/SWIG/events/timer-event.i +++ b/plugins/dali-swig/SWIG/events/timer-event.i @@ -35,19 +35,16 @@ using System.Runtime.InteropServices; } [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool TickEventHandler(object source, TickEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool TickCallbackDelegate(IntPtr data); - private TickEventHandler _timerTickEventHandler; + private DaliEventHandlerWithReturnType _timerTickEventHandler; private TickCallbackDelegate _timerTickCallbackDelegate; /** * @brief Event for Ticked signal which can be used to subscribe/unsubscribe the event handler - * (in the type of TickEventHandler) provided by the user. - * Ticked signal is emitted after specified time interval. + * (in the type of TickEventHandler-DaliEventHandlerWithReturnType) + * provided by the user. Ticked signal is emitted after specified time interval. */ - public event TickEventHandler Ticked + public event DaliEventHandlerWithReturnType Ticked { add { @@ -86,7 +83,7 @@ using System.Runtime.InteropServices; if (_timerTickEventHandler != null) { //here we send all data to user event handlers - return _timerTickEventHandler(this, e); + return _timerTickEventHandler(this, e, true); } return false; }