[UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate bool TouchEventHandler(object source, TouchEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate bool HoverEventHandler(object source, HoverEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate bool WheelEventHandler(object source, WheelEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate void OnStageEventHandler(object source, OnStageEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate void OffStageEventHandler(object source, OffStageEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate void OnRelayoutEventHandler(object source, OnRelayoutEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate bool TouchCallbackDelegate(IntPtr actor, IntPtr touchData);
- private TouchEventHandler _actorTouchDataEventHandler;
+ private DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> _actorTouchDataEventHandler;
private TouchCallbackDelegate _actorTouchDataCallbackDelegate;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate bool HoverEventCallbackDelegate(IntPtr actor, IntPtr hoverEvent);
- private HoverEventHandler _actorHoverEventHandler;
+ private DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> _actorHoverEventHandler;
private HoverEventCallbackDelegate _actorHoverEventCallbackDelegate;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate bool WheelEventCallbackDelegate(IntPtr actor, IntPtr wheelEvent);
- private WheelEventHandler _actorWheelEventHandler;
+ private DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> _actorWheelEventHandler;
private WheelEventCallbackDelegate _actorWheelEventCallbackDelegate;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void OnStageEventCallbackDelegate(IntPtr actor);
- private OnStageEventHandler _actorOnStageEventHandler;
+ private DaliEventHandler<object,OnStageEventArgs> _actorOnStageEventHandler;
private OnStageEventCallbackDelegate _actorOnStageEventCallbackDelegate;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void OffStageEventCallbackDelegate(IntPtr actor);
- private OffStageEventHandler _actorOffStageEventHandler;
+ private DaliEventHandler<object,OffStageEventArgs> _actorOffStageEventHandler;
private OffStageEventCallbackDelegate _actorOffStageEventCallbackDelegate;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void OnRelayoutEventCallbackDelegate(IntPtr actor);
- private OnRelayoutEventHandler _actorOnRelayoutEventHandler;
+ private DaliEventHandler<object,OnRelayoutEventArgs> _actorOnRelayoutEventHandler;
private OnRelayoutEventCallbackDelegate _actorOnRelayoutEventCallbackDelegate;
/**
* @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of TouchEventHandler) provided by the user.
- * Touched signal is emitted when touch input is received.
+ * (in the type of TouchEventHandler-DaliEventHandlerWithReturnType<object,TouchEventArgs,bool>)
+ * provided by the user. Touched signal is emitted when touch input is received.
*/
- public event TouchEventHandler Touched
+ public event DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> Touched
{
add
{
if (_actorTouchDataEventHandler != null)
{
//here we send all data to user event handlers
- return _actorTouchDataEventHandler(this, e);
+ return _actorTouchDataEventHandler(this, e, true);
}
return false;
/**
* @brief Event for Hovered signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of HoverEventHandler) provided by the user.
- * Hovered signal is emitted when hover input is received.
+ * (in the type of HoverEventHandler-DaliEventHandlerWithReturnType<object,HoverEventArgs,bool>)
+ * provided by the user. Hovered signal is emitted when hover input is received.
*/
- public event HoverEventHandler Hovered
+ public event DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> Hovered
{
add
{
if (_actorHoverEventHandler != null)
{
//here we send all data to user event handlers
- return _actorHoverEventHandler(this, e);
+ return _actorHoverEventHandler(this, e, true);
}
return false;
/**
* @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of WheelEventHandler) provided by the user.
- * WheelMoved signal is emitted when wheel event is received.
+ * (in the type of WheelEventHandler-DaliEventHandlerWithReturnType<object,WheelEventArgs,bool>)
+ * provided by the user. WheelMoved signal is emitted when wheel event is received.
*/
- public event WheelEventHandler WheelMoved
+ public event DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> WheelMoved
{
add
{
if (_actorWheelEventHandler != null)
{
//here we send all data to user event handlers
- return _actorWheelEventHandler(this, e);
+ return _actorWheelEventHandler(this, e, true);
}
return false;
* (in the type of OnStageEventHandler) provided by the user.
* OnStage signal is emitted after the actor has been connected to the stage.
*/
- public event OnStageEventHandler OnStageEvent
+ public event DaliEventHandler<object,OnStageEventArgs> OnStageEvent
{
add
{
* (in the type of OffStageEventHandler) provided by the user.
* OffStage signal is emitted after the actor has been disconnected from the stage.
*/
- public event OffStageEventHandler OffStageEvent
+ public event DaliEventHandler<object,OffStageEventArgs> OffStageEvent
{
add
{
* (in the type of OnRelayoutEventHandler) provided by the user.
* OnRelayout signal is emitted after the size has been set on the actor during relayout.
*/
- public event OnRelayoutEventHandler OnRelayoutEvent
+ public event DaliEventHandler<object,OnRelayoutEventArgs> OnRelayoutEvent
{
add
{