[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Gesture_time_get")]
public static extern uint Gesture_time_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Gesture_SWIGUpcast")]
+ public static extern global::System.IntPtr Gesture_SWIGUpcast(global::System.IntPtr jarg1);
}
}
}
\ No newline at end of file
/*
- * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/// in a particular order or within a certain time frame (for example, pinch).<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public class Gesture : Disposable
+ public class Gesture : BaseHandle
{
/// <summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Gesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
+ internal Gesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Gesture.Gesture_SWIGUpcast(cPtr), cMemoryOwn)
{
}
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ internal static Gesture GetGestureFromPtr(global::System.IntPtr cPtr)
+ {
+ Gesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Gesture;
+ if (ret == null)
+ {
+ ret = new Gesture(cPtr, false);
+ }
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
/// This will not be public opened.
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
/// hovered or the points where a hover has stopped.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public class Hover : Disposable
+ public class Hover : BaseHandle
{
/// <summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Hover(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
+ internal Hover(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Hover.Hover_SWIGUpcast(cPtr), cMemoryOwn)
{
}
internal static Hover GetHoverFromPtr(global::System.IntPtr cPtr)
{
- Hover ret = new Hover(cPtr, false);
+ Hover ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Hover;
+ if (ret == null)
+ {
+ ret = new Hover(cPtr, false);
+ }
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// The key structure is used to store a key press.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public class Key : Disposable
+ public class Key : BaseHandle
{
/// <summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Key(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
+ internal Key(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Key.Key_SWIGUpcast(cPtr), cMemoryOwn)
{
}
internal static Key GetKeyFromPtr(global::System.IntPtr cPtr)
{
- Key ret = new Key(cPtr, false);
+ Key ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Key;
+ if (ret == null)
+ {
+ ret = new Key(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
internal static LongPressGesture GetLongPressGestureFromPtr(global::System.IntPtr cPtr)
{
- LongPressGesture ret = new LongPressGesture(cPtr, false);
+ LongPressGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as LongPressGesture;
+ if (ret == null)
+ {
+ ret = new LongPressGesture(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
internal static PanGesture GetPanGestureFromPtr(global::System.IntPtr cPtr)
{
- PanGesture ret = new PanGesture(cPtr, false);
+ PanGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as PanGesture;
+ if (ret == null)
+ {
+ ret = new PanGesture(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
internal static PinchGesture GetPinchGestureFromPtr(global::System.IntPtr cPtr)
{
- PinchGesture ret = new PinchGesture(cPtr, false);
+ PinchGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as PinchGesture;
+ if (ret == null)
+ {
+ ret = new PinchGesture(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/*
- * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
internal static RotationGesture GetRotationGestureFromPtr(global::System.IntPtr cPtr)
{
- RotationGesture ret = new RotationGesture(cPtr, false);
+ RotationGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as RotationGesture;
+ if (ret == null)
+ {
+ ret = new RotationGesture(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/// <returns>The TapGesture object.</returns>
internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
{
- TapGesture ret = new TapGesture(cPtr, false);
+ TapGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as TapGesture;
+ if (ret == null)
+ {
+ ret = new TapGesture(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// The mouse wheel event can be sent to the specific actor but the custom wheel event will be sent to the window.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public class Wheel : Disposable
+ public class Wheel : BaseHandle
{
/// <summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Wheel(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
+ internal Wheel(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Wheel.Wheel_SWIGUpcast(cPtr), cMemoryOwn)
{
}
internal static Wheel GetWheelFromPtr(global::System.IntPtr cPtr)
{
- Wheel ret = new Wheel(cPtr, false);
+ Wheel ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Wheel;
+ if (ret == null)
+ {
+ ret = new Wheel(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}