1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>EFL Gesture Recognizer Double Tap class</summary>
13 [Efl.Canvas.GestureRecognizerDoubleTap.NativeMethods]
14 public class GestureRecognizerDoubleTap : Efl.Canvas.GestureRecognizer
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(GestureRecognizerDoubleTap))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32 [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
33 efl_canvas_gesture_recognizer_double_tap_class_get();
34 /// <summary>Initializes a new instance of the <see cref="GestureRecognizerDoubleTap"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 public GestureRecognizerDoubleTap(Efl.Object parent= null
37 ) : base(efl_canvas_gesture_recognizer_double_tap_class_get(), typeof(GestureRecognizerDoubleTap), parent)
39 FinishInstantiation();
42 /// <summary>Initializes a new instance of the <see cref="GestureRecognizerDoubleTap"/> class.
43 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44 /// <param name="raw">The native pointer to be wrapped.</param>
45 protected GestureRecognizerDoubleTap(System.IntPtr raw) : base(raw)
49 /// <summary>Initializes a new instance of the <see cref="GestureRecognizerDoubleTap"/> class.
50 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
51 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
52 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
53 /// <param name="parent">The Efl.Object parent of this instance.</param>
54 protected GestureRecognizerDoubleTap(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
58 /// <summary>Sets the time between taps to be recognized as a double tap</summary>
59 /// <returns>Allowed time gap value</returns>
60 virtual public double GetTimeout() {
61 var _ret_var = Efl.Canvas.GestureRecognizerDoubleTap.NativeMethods.efl_gesture_recognizer_double_tap_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
62 Eina.Error.RaiseIfUnhandledException();
65 /// <summary>Sets the time between taps to be recognized as a double tap</summary>
66 /// <param name="time">Allowed time gap value</param>
67 virtual public void SetTimeout(double time) {
68 Efl.Canvas.GestureRecognizerDoubleTap.NativeMethods.efl_gesture_recognizer_double_tap_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),time);
69 Eina.Error.RaiseIfUnhandledException();
71 /// <summary>Sets the time between taps to be recognized as a double tap</summary>
72 /// <value>Allowed time gap value</value>
73 public double Timeout {
74 get { return GetTimeout(); }
75 set { SetTimeout(value); }
77 private static IntPtr GetEflClassStatic()
79 return Efl.Canvas.GestureRecognizerDoubleTap.efl_canvas_gesture_recognizer_double_tap_class_get();
81 /// <summary>Wrapper for native methods and virtual method delegates.
82 /// For internal use by generated code only.</summary>
83 public new class NativeMethods : Efl.Canvas.GestureRecognizer.NativeMethods
85 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
86 /// <summary>Gets the list of Eo operations to override.</summary>
87 /// <returns>The list of Eo operations to be overload.</returns>
88 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
90 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
91 var methods = Efl.Eo.Globals.GetUserMethods(type);
93 if (efl_gesture_recognizer_double_tap_timeout_get_static_delegate == null)
95 efl_gesture_recognizer_double_tap_timeout_get_static_delegate = new efl_gesture_recognizer_double_tap_timeout_get_delegate(timeout_get);
98 if (methods.FirstOrDefault(m => m.Name == "GetTimeout") != null)
100 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_recognizer_double_tap_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_double_tap_timeout_get_static_delegate) });
103 if (efl_gesture_recognizer_double_tap_timeout_set_static_delegate == null)
105 efl_gesture_recognizer_double_tap_timeout_set_static_delegate = new efl_gesture_recognizer_double_tap_timeout_set_delegate(timeout_set);
108 if (methods.FirstOrDefault(m => m.Name == "SetTimeout") != null)
110 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_recognizer_double_tap_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_double_tap_timeout_set_static_delegate) });
113 descs.AddRange(base.GetEoOps(type));
116 /// <summary>Returns the Eo class for the native methods of this class.</summary>
117 /// <returns>The native class pointer.</returns>
118 public override IntPtr GetEflClass()
120 return Efl.Canvas.GestureRecognizerDoubleTap.efl_canvas_gesture_recognizer_double_tap_class_get();
123 #pragma warning disable CA1707, CS1591, SA1300, SA1600
126 private delegate double efl_gesture_recognizer_double_tap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
129 public delegate double efl_gesture_recognizer_double_tap_timeout_get_api_delegate(System.IntPtr obj);
131 public static Efl.Eo.FunctionWrapper<efl_gesture_recognizer_double_tap_timeout_get_api_delegate> efl_gesture_recognizer_double_tap_timeout_get_ptr = new Efl.Eo.FunctionWrapper<efl_gesture_recognizer_double_tap_timeout_get_api_delegate>(Module, "efl_gesture_recognizer_double_tap_timeout_get");
133 private static double timeout_get(System.IntPtr obj, System.IntPtr pd)
135 Eina.Log.Debug("function efl_gesture_recognizer_double_tap_timeout_get was called");
136 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
139 double _ret_var = default(double);
142 _ret_var = ((GestureRecognizerDoubleTap)ws.Target).GetTimeout();
146 Eina.Log.Warning($"Callback error: {e.ToString()}");
147 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
155 return efl_gesture_recognizer_double_tap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
159 private static efl_gesture_recognizer_double_tap_timeout_get_delegate efl_gesture_recognizer_double_tap_timeout_get_static_delegate;
162 private delegate void efl_gesture_recognizer_double_tap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double time);
165 public delegate void efl_gesture_recognizer_double_tap_timeout_set_api_delegate(System.IntPtr obj, double time);
167 public static Efl.Eo.FunctionWrapper<efl_gesture_recognizer_double_tap_timeout_set_api_delegate> efl_gesture_recognizer_double_tap_timeout_set_ptr = new Efl.Eo.FunctionWrapper<efl_gesture_recognizer_double_tap_timeout_set_api_delegate>(Module, "efl_gesture_recognizer_double_tap_timeout_set");
169 private static void timeout_set(System.IntPtr obj, System.IntPtr pd, double time)
171 Eina.Log.Debug("function efl_gesture_recognizer_double_tap_timeout_set was called");
172 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
178 ((GestureRecognizerDoubleTap)ws.Target).SetTimeout(time);
182 Eina.Log.Warning($"Callback error: {e.ToString()}");
183 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
190 efl_gesture_recognizer_double_tap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), time);
194 private static efl_gesture_recognizer_double_tap_timeout_set_delegate efl_gesture_recognizer_double_tap_timeout_set_static_delegate;
196 #pragma warning restore CA1707, CS1591, SA1300, SA1600