X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2FSWIG%2Fevents%2Fstage-event.i;h=c370aaea022af83b892362bb26c879badfced7ee;hp=62f372a0a2415668035da4b3d9ae26f66d34999f;hb=1820cf3dc1c6b820bf57191cf4b498d9fa197e1b;hpb=ee2676c4dfd4ec5e1cb7078acf2ead93fc4c9051 diff --git a/plugins/dali-swig/SWIG/events/stage-event.i b/plugins/dali-swig/SWIG/events/stage-event.i index 62f372a..c370aae 100644 --- a/plugins/dali-swig/SWIG/events/stage-event.i +++ b/plugins/dali-swig/SWIG/events/stage-event.i @@ -134,70 +134,50 @@ public class SceneCreatedEventArgs : EventArgs { } - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void TouchEventHandler(object source, TouchEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void WheelEventHandler(object source, WheelEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void KeyEventHandler(object source, KeyEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void EventProcessingFinishedEventHandler(object source, EventProcessingFinishedEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void ContextLostEventHandler(object source, ContextLostEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void ContextRegainedEventHandler(object source, ContextRegainedEventArgs e); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void SceneCreatedEventHandler(object source, SceneCreatedEventArgs e); [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void StageTouchCallbackDelegate(IntPtr data); - private TouchEventHandler _stageTouchEventHandler; + private DaliEventHandler _stageTouchEventHandler; private StageTouchCallbackDelegate _stageTouchCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void WheelCallbackDelegate(IntPtr data); - private WheelEventHandler _stageWheelEventHandler; + private DaliEventHandler _stageWheelEventHandler; private WheelCallbackDelegate _stageWheelCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void KeyCallbackDelegate(IntPtr data); - private KeyEventHandler _stageKeyEventHandler; + private DaliEventHandler _stageKeyEventHandler; private KeyCallbackDelegate _stageKeyCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void EventProcessingFinishedEventCallbackDelegate(); - private EventProcessingFinishedEventHandler _stageEventProcessingFinishedEventHandler; + private DaliEventHandler _stageEventProcessingFinishedEventHandler; private EventProcessingFinishedEventCallbackDelegate _stageEventProcessingFinishedEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void ContextLostEventCallbackDelegate(); - private ContextLostEventHandler _stageContextLostEventHandler; + private DaliEventHandler _stageContextLostEventHandler; private ContextLostEventCallbackDelegate _stageContextLostEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void ContextRegainedEventCallbackDelegate(); - private ContextRegainedEventHandler _stageContextRegainedEventHandler; + private DaliEventHandler _stageContextRegainedEventHandler; private ContextRegainedEventCallbackDelegate _stageContextRegainedEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void SceneCreatedEventCallbackDelegate(); - private SceneCreatedEventHandler _stageSceneCreatedEventHandler; + private DaliEventHandler _stageSceneCreatedEventHandler; private SceneCreatedEventCallbackDelegate _stageSceneCreatedEventCallbackDelegate; /** * @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler - * (in the type of TouchEventHandler) provided by the user. + * (in the type of TouchEventHandler-DaliEventHandler) provided by the user. * Touched signal is emitted when the screen is touched and when the touch ends * (i.e. the down & up touch events only). * */ - public event TouchEventHandler Touched + public event DaliEventHandler Touched { add { @@ -245,11 +225,11 @@ public class SceneCreatedEventArgs : EventArgs /** * @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler - * (in the type of WheelEventHandler) provided by the user. + * (in the type of WheelEventHandler-DaliEventHandler) provided by the user. * WheelMoved signal is emitted is emitted when wheel event is received. * */ - public event WheelEventHandler WheelMoved + public event DaliEventHandler WheelMoved { add { @@ -297,11 +277,11 @@ public class SceneCreatedEventArgs : EventArgs /** * @brief Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler - * (in the type of KeyEventHandler) provided by the user. + * (in the type of KeyEventHandler-DaliEventHandler) provided by the user. * KeyPressed signal is emitted is emitted when key event is received. * */ - public event KeyEventHandler KeyPressed + public event DaliEventHandler KeyPressed { add { @@ -349,11 +329,11 @@ public class SceneCreatedEventArgs : EventArgs /** * @brief Event for EventProcessingFinished signal which can be used to subscribe/unsubscribe the event handler - * (in the type of EventProcessingFinishedEventHandler) provided by the user. - * EventProcessingFinished signal is emitted just after the event processing is finished. + * (in the type of EventProcessingFinishedEventHandler-DaliEventHandler) + * provided by the user. EventProcessingFinished signal is emitted just after the event processing is finished. * */ - public event EventProcessingFinishedEventHandler EventProcessingFinished + public event DaliEventHandler EventProcessingFinished { add { @@ -398,11 +378,11 @@ public class SceneCreatedEventArgs : EventArgs /** * @brief Event for ContextLost signal which can be used to subscribe/unsubscribe the event handler - * (in the type of ContextLostEventHandler) provided by the user. + * (in the type of ContextLostEventHandler-DaliEventHandler) provided by the user. * ContextLost signal is emitted when the GL context is lost (Platform specific behaviour). * */ - public event ContextLostEventHandler ContextLost + public event DaliEventHandler ContextLost { add { @@ -447,12 +427,12 @@ public class SceneCreatedEventArgs : EventArgs /** * @brief Event for ContextRegained signal which can be used to subscribe/unsubscribe the event handler - * (in the type of ContextRegainedEventHandler) provided by the user. - * ContextRegained signal is emitted when the GL context is regained (Platform specific + * (in the type of ContextRegainedEventHandler-DaliEventHandler) + * provided by the user. ContextRegained signal is emitted when the GL context is regained (Platform specific * behaviour). * */ - public event ContextRegainedEventHandler ContextRegained + public event DaliEventHandler ContextRegained { add { @@ -497,11 +477,11 @@ public class SceneCreatedEventArgs : EventArgs /** * @brief Event for SceneCreated signal which can be used to subscribe/unsubscribe the event handler - * (in the type of SceneCreatedEventHandler) provided by the user. + * (in the type of SceneCreatedEventHandler-DaliEventHandler) provided by the user. * SceneCreated signal is emitted after the initial scene is created. * */ - public event SceneCreatedEventHandler SceneCreated + public event DaliEventHandler SceneCreated { add { @@ -544,16 +524,17 @@ public class SceneCreatedEventArgs : EventArgs } } - public Vector2 Size + public Dali.Size Size { get { - Vector2 ret = GetSize(); + Vector2 ret1 = GetSize(); + Dali.Size ret= new Size(ret1); return ret; } } - public Vector4 BackgroundColor + public Dali.Color BackgroundColor { set { @@ -561,7 +542,8 @@ public class SceneCreatedEventArgs : EventArgs } get { - Vector4 ret = GetBackgroundColor(); + Vector4 ret1 = GetBackgroundColor(); + Dali.Color ret = new Color(ret1); return ret; } }