3ed8384edecc05c9f5dc3bbbabc3b781f8ac1636
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_gesture_recognizer_double_tap.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 namespace Canvas {
11
12 /// <summary>EFL Gesture Recognizer Double Tap class</summary>
13 [Efl.Canvas.GestureRecognizerDoubleTap.NativeMethods]
14 public class GestureRecognizerDoubleTap : Efl.Canvas.GestureRecognizer
15 {
16     ///<summary>Pointer to the native class description.</summary>
17     public override System.IntPtr NativeClass
18     {
19         get
20         {
21             if (((object)this).GetType() == typeof(GestureRecognizerDoubleTap))
22             {
23                 return GetEflClassStatic();
24             }
25             else
26             {
27                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
28             }
29         }
30     }
31
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)
38     {
39         FinishInstantiation();
40     }
41
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)
46     {
47     }
48
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)
55     {
56     }
57
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();
63         return _ret_var;
64  }
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();
70                          }
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); }
76     }
77     private static IntPtr GetEflClassStatic()
78     {
79         return Efl.Canvas.GestureRecognizerDoubleTap.efl_canvas_gesture_recognizer_double_tap_class_get();
80     }
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
84     {
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)
89         {
90             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
91             var methods = Efl.Eo.Globals.GetUserMethods(type);
92
93             if (efl_gesture_recognizer_double_tap_timeout_get_static_delegate == null)
94             {
95                 efl_gesture_recognizer_double_tap_timeout_get_static_delegate = new efl_gesture_recognizer_double_tap_timeout_get_delegate(timeout_get);
96             }
97
98             if (methods.FirstOrDefault(m => m.Name == "GetTimeout") != null)
99             {
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) });
101             }
102
103             if (efl_gesture_recognizer_double_tap_timeout_set_static_delegate == null)
104             {
105                 efl_gesture_recognizer_double_tap_timeout_set_static_delegate = new efl_gesture_recognizer_double_tap_timeout_set_delegate(timeout_set);
106             }
107
108             if (methods.FirstOrDefault(m => m.Name == "SetTimeout") != null)
109             {
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) });
111             }
112
113             descs.AddRange(base.GetEoOps(type));
114             return descs;
115         }
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()
119         {
120             return Efl.Canvas.GestureRecognizerDoubleTap.efl_canvas_gesture_recognizer_double_tap_class_get();
121         }
122
123         #pragma warning disable CA1707, CS1591, SA1300, SA1600
124
125         
126         private delegate double efl_gesture_recognizer_double_tap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
127
128         
129         public delegate double efl_gesture_recognizer_double_tap_timeout_get_api_delegate(System.IntPtr obj);
130
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");
132
133         private static double timeout_get(System.IntPtr obj, System.IntPtr pd)
134         {
135             Eina.Log.Debug("function efl_gesture_recognizer_double_tap_timeout_get was called");
136             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
137             if (ws != null)
138             {
139             double _ret_var = default(double);
140                 try
141                 {
142                     _ret_var = ((GestureRecognizerDoubleTap)ws.Target).GetTimeout();
143                 }
144                 catch (Exception e)
145                 {
146                     Eina.Log.Warning($"Callback error: {e.ToString()}");
147                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
148                 }
149
150         return _ret_var;
151
152             }
153             else
154             {
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)));
156             }
157         }
158
159         private static efl_gesture_recognizer_double_tap_timeout_get_delegate efl_gesture_recognizer_double_tap_timeout_get_static_delegate;
160
161         
162         private delegate void efl_gesture_recognizer_double_tap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd,  double time);
163
164         
165         public delegate void efl_gesture_recognizer_double_tap_timeout_set_api_delegate(System.IntPtr obj,  double time);
166
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");
168
169         private static void timeout_set(System.IntPtr obj, System.IntPtr pd, double time)
170         {
171             Eina.Log.Debug("function efl_gesture_recognizer_double_tap_timeout_set was called");
172             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
173             if (ws != null)
174             {
175                                     
176                 try
177                 {
178                     ((GestureRecognizerDoubleTap)ws.Target).SetTimeout(time);
179                 }
180                 catch (Exception e)
181                 {
182                     Eina.Log.Warning($"Callback error: {e.ToString()}");
183                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
184                 }
185
186                         
187             }
188             else
189             {
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);
191             }
192         }
193
194         private static efl_gesture_recognizer_double_tap_timeout_set_delegate efl_gesture_recognizer_double_tap_timeout_set_static_delegate;
195
196         #pragma warning restore CA1707, CS1591, SA1300, SA1600
197
198 }
199 }
200 }
201
202 }
203