7c0fbde9b9df471d634ceb0622965baec456cb76
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_gesture_flick.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 Flick class</summary>
13 [Efl.Canvas.GestureFlick.NativeMethods]
14 public class GestureFlick : Efl.Canvas.Gesture
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(GestureFlick))
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_flick_class_get();
34     /// <summary>Initializes a new instance of the <see cref="GestureFlick"/> class.</summary>
35     /// <param name="parent">Parent instance.</param>
36     public GestureFlick(Efl.Object parent= null
37             ) : base(efl_canvas_gesture_flick_class_get(), typeof(GestureFlick), parent)
38     {
39         FinishInstantiation();
40     }
41
42     /// <summary>Initializes a new instance of the <see cref="GestureFlick"/> 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 GestureFlick(System.IntPtr raw) : base(raw)
46     {
47     }
48
49     /// <summary>Initializes a new instance of the <see cref="GestureFlick"/> 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 GestureFlick(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
55     {
56     }
57
58     /// <summary>Gets flick gesture momentum value</summary>
59     /// <returns>The momentum vector</returns>
60     virtual public Eina.Vector2 GetMomentum() {
61          var _ret_var = Efl.Canvas.GestureFlick.NativeMethods.efl_gesture_flick_momentum_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>Gets flick direction angle</summary>
66     /// <returns>The angle value</returns>
67     virtual public double GetAngle() {
68          var _ret_var = Efl.Canvas.GestureFlick.NativeMethods.efl_gesture_flick_angle_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
69         Eina.Error.RaiseIfUnhandledException();
70         return _ret_var;
71  }
72     private static IntPtr GetEflClassStatic()
73     {
74         return Efl.Canvas.GestureFlick.efl_canvas_gesture_flick_class_get();
75     }
76     /// <summary>Wrapper for native methods and virtual method delegates.
77     /// For internal use by generated code only.</summary>
78     public new class NativeMethods : Efl.Canvas.Gesture.NativeMethods
79     {
80         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Evas);
81         /// <summary>Gets the list of Eo operations to override.</summary>
82         /// <returns>The list of Eo operations to be overload.</returns>
83         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
84         {
85             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
86             var methods = Efl.Eo.Globals.GetUserMethods(type);
87
88             if (efl_gesture_flick_momentum_get_static_delegate == null)
89             {
90                 efl_gesture_flick_momentum_get_static_delegate = new efl_gesture_flick_momentum_get_delegate(momentum_get);
91             }
92
93             if (methods.FirstOrDefault(m => m.Name == "GetMomentum") != null)
94             {
95                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_flick_momentum_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_flick_momentum_get_static_delegate) });
96             }
97
98             if (efl_gesture_flick_angle_get_static_delegate == null)
99             {
100                 efl_gesture_flick_angle_get_static_delegate = new efl_gesture_flick_angle_get_delegate(angle_get);
101             }
102
103             if (methods.FirstOrDefault(m => m.Name == "GetAngle") != null)
104             {
105                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_flick_angle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_flick_angle_get_static_delegate) });
106             }
107
108             descs.AddRange(base.GetEoOps(type));
109             return descs;
110         }
111         /// <summary>Returns the Eo class for the native methods of this class.</summary>
112         /// <returns>The native class pointer.</returns>
113         public override IntPtr GetEflClass()
114         {
115             return Efl.Canvas.GestureFlick.efl_canvas_gesture_flick_class_get();
116         }
117
118         #pragma warning disable CA1707, CS1591, SA1300, SA1600
119
120         
121         private delegate Eina.Vector2.NativeStruct efl_gesture_flick_momentum_get_delegate(System.IntPtr obj, System.IntPtr pd);
122
123         
124         public delegate Eina.Vector2.NativeStruct efl_gesture_flick_momentum_get_api_delegate(System.IntPtr obj);
125
126         public static Efl.Eo.FunctionWrapper<efl_gesture_flick_momentum_get_api_delegate> efl_gesture_flick_momentum_get_ptr = new Efl.Eo.FunctionWrapper<efl_gesture_flick_momentum_get_api_delegate>(Module, "efl_gesture_flick_momentum_get");
127
128         private static Eina.Vector2.NativeStruct momentum_get(System.IntPtr obj, System.IntPtr pd)
129         {
130             Eina.Log.Debug("function efl_gesture_flick_momentum_get was called");
131             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
132             if (ws != null)
133             {
134             Eina.Vector2 _ret_var = default(Eina.Vector2);
135                 try
136                 {
137                     _ret_var = ((GestureFlick)ws.Target).GetMomentum();
138                 }
139                 catch (Exception e)
140                 {
141                     Eina.Log.Warning($"Callback error: {e.ToString()}");
142                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
143                 }
144
145         return _ret_var;
146
147             }
148             else
149             {
150                 return efl_gesture_flick_momentum_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
151             }
152         }
153
154         private static efl_gesture_flick_momentum_get_delegate efl_gesture_flick_momentum_get_static_delegate;
155
156         
157         private delegate double efl_gesture_flick_angle_get_delegate(System.IntPtr obj, System.IntPtr pd);
158
159         
160         public delegate double efl_gesture_flick_angle_get_api_delegate(System.IntPtr obj);
161
162         public static Efl.Eo.FunctionWrapper<efl_gesture_flick_angle_get_api_delegate> efl_gesture_flick_angle_get_ptr = new Efl.Eo.FunctionWrapper<efl_gesture_flick_angle_get_api_delegate>(Module, "efl_gesture_flick_angle_get");
163
164         private static double angle_get(System.IntPtr obj, System.IntPtr pd)
165         {
166             Eina.Log.Debug("function efl_gesture_flick_angle_get was called");
167             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
168             if (ws != null)
169             {
170             double _ret_var = default(double);
171                 try
172                 {
173                     _ret_var = ((GestureFlick)ws.Target).GetAngle();
174                 }
175                 catch (Exception e)
176                 {
177                     Eina.Log.Warning($"Callback error: {e.ToString()}");
178                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
179                 }
180
181         return _ret_var;
182
183             }
184             else
185             {
186                 return efl_gesture_flick_angle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
187             }
188         }
189
190         private static efl_gesture_flick_angle_get_delegate efl_gesture_flick_angle_get_static_delegate;
191
192         #pragma warning restore CA1707, CS1591, SA1300, SA1600
193
194 }
195 }
196 }
197
198 }
199