internal static Gesture GetGestureFromPtr(global::System.IntPtr cPtr)
{
- Gesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Gesture;
- if (ret == null)
- {
- ret = new Gesture(cPtr, false);
- }
+ Gesture ret = new Gesture(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal static Hover GetHoverFromPtr(global::System.IntPtr cPtr)
{
- Hover ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Hover;
- if (ret == null)
- {
- ret = new Hover(cPtr, false);
- }
-
+ Hover ret = new Hover(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal static Key GetKeyFromPtr(global::System.IntPtr cPtr)
{
- Key ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Key;
- if (ret == null)
- {
- ret = new Key(cPtr, false);
- }
+ Key ret = new Key(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal static LongPressGesture GetLongPressGestureFromPtr(global::System.IntPtr cPtr)
{
- LongPressGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as LongPressGesture;
- if (ret == null)
- {
- ret = new LongPressGesture(cPtr, false);
- }
+ LongPressGesture ret = new LongPressGesture(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal static PanGesture GetPanGestureFromPtr(global::System.IntPtr cPtr)
{
- PanGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as PanGesture;
- if (ret == null)
- {
- ret = new PanGesture(cPtr, false);
- }
+ PanGesture ret = new PanGesture(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal static PinchGesture GetPinchGestureFromPtr(global::System.IntPtr cPtr)
{
- PinchGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as PinchGesture;
- if (ret == null)
- {
- ret = new PinchGesture(cPtr, false);
- }
+ PinchGesture ret = new PinchGesture(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal static RotationGesture GetRotationGestureFromPtr(global::System.IntPtr cPtr)
{
- RotationGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as RotationGesture;
- if (ret == null)
- {
- ret = new RotationGesture(cPtr, false);
- }
+ RotationGesture ret = new RotationGesture(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <returns>The TapGesture object.</returns>
internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
{
- TapGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as TapGesture;
- if (ret == null)
- {
- ret = new TapGesture(cPtr, false);
- }
+ TapGesture ret = new TapGesture(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal static Wheel GetWheelFromPtr(global::System.IntPtr cPtr)
{
- Wheel ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Wheel;
- if (ret == null)
- {
- ret = new Wheel(cPtr, false);
- }
+ Wheel ret = new Wheel(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}