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>Common interface for draggable objects and parts.</summary>
13 [Efl.Ui.IDragConcrete.NativeMethods]
14 public interface IDrag :
15 Efl.Eo.IWrapper, IDisposable
17 /// <summary>Gets the draggable object location.</summary>
18 /// <param name="dx">The x relative position, from 0 to 1.</param>
19 /// <param name="dy">The y relative position, from 0 to 1.</param>
20 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
21 bool GetDragValue(out double dx, out double dy);
22 /// <summary>Sets the draggable object location.
23 /// This places the draggable object at the given location.</summary>
24 /// <param name="dx">The x relative position, from 0 to 1.</param>
25 /// <param name="dy">The y relative position, from 0 to 1.</param>
26 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
27 bool SetDragValue(double dx, double dy);
28 /// <summary>Gets the size of the dradgable object.</summary>
29 /// <param name="dw">The drag relative width, from 0 to 1.</param>
30 /// <param name="dh">The drag relative height, from 0 to 1.</param>
31 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
32 bool GetDragSize(out double dw, out double dh);
33 /// <summary>Sets the size of the draggable object.</summary>
34 /// <param name="dw">The drag relative width, from 0 to 1.</param>
35 /// <param name="dh">The drag relative height, from 0 to 1.</param>
36 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
37 bool SetDragSize(double dw, double dh);
38 /// <summary>Gets the draggable direction.</summary>
39 /// <returns>The direction(s) premitted for drag.</returns>
40 Efl.Ui.DragDir GetDragDir();
41 /// <summary>Gets the x and y step increments for the draggable object.</summary>
42 /// <param name="dx">The x step relative amount, from 0 to 1.</param>
43 /// <param name="dy">The y step relative amount, from 0 to 1.</param>
44 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
45 bool GetDragStep(out double dx, out double dy);
46 /// <summary>Sets the x,y step increments for a draggable object.</summary>
47 /// <param name="dx">The x step relative amount, from 0 to 1.</param>
48 /// <param name="dy">The y step relative amount, from 0 to 1.</param>
49 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
50 bool SetDragStep(double dx, double dy);
51 /// <summary>Gets the x,y page step increments for the draggable object.</summary>
52 /// <param name="dx">The x page step increment</param>
53 /// <param name="dy">The y page step increment</param>
54 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
55 bool GetDragPage(out double dx, out double dy);
56 /// <summary>Sets the x,y page step increment values.</summary>
57 /// <param name="dx">The x page step increment</param>
58 /// <param name="dy">The y page step increment</param>
59 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
60 bool SetDragPage(double dx, double dy);
61 /// <summary>Moves the draggable by <c>dx</c>,<c>dy</c> steps.
62 /// This moves the draggable part by <c>dx</c>,<c>dy</c> steps where the step increment is the amount set by <see cref="Efl.Ui.IDrag.GetDragStep"/>.
64 /// <c>dx</c> and <c>dy</c> can be positive or negative numbers, integer values are recommended.</summary>
65 /// <param name="dx">The number of steps horizontally.</param>
66 /// <param name="dy">The number of steps vertically.</param>
67 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
68 bool MoveDragStep(double dx, double dy);
69 /// <summary>Moves the draggable by <c>dx</c>,<c>dy</c> pages.
70 /// This moves the draggable by <c>dx</c>,<c>dy</c> pages. The increment is defined by <see cref="Efl.Ui.IDrag.GetDragPage"/>.
72 /// <c>dx</c> and <c>dy</c> can be positive or negative numbers, integer values are recommended.
74 /// Warning: Paging is bugged!</summary>
75 /// <param name="dx">The number of pages horizontally.</param>
76 /// <param name="dy">The number of pages vertically.</param>
77 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
78 bool MoveDragPage(double dx, double dy);
79 /// <summary>Determines the draggable directions (read-only).
80 /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes <c>x</c> and <c>y</c>. See the EDC reference documentation for more information.</summary>
81 /// <value>The direction(s) premitted for drag.</value>
82 Efl.Ui.DragDir DragDir {
86 /// <summary>Common interface for draggable objects and parts.</summary>
87 sealed public class IDragConcrete :
92 ///<summary>Pointer to the native class description.</summary>
93 public System.IntPtr NativeClass
97 if (((object)this).GetType() == typeof(IDragConcrete))
99 return GetEflClassStatic();
103 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
108 private System.IntPtr handle;
109 ///<summary>Pointer to the native instance.</summary>
110 public System.IntPtr NativeHandle
112 get { return handle; }
115 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
116 efl_ui_drag_interface_get();
117 /// <summary>Initializes a new instance of the <see cref="IDrag"/> class.
118 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
119 private IDragConcrete(System.IntPtr raw)
123 ///<summary>Destructor.</summary>
129 ///<summary>Releases the underlying native instance.</summary>
130 private void Dispose(bool disposing)
132 if (handle != System.IntPtr.Zero)
135 handle = IntPtr.Zero;
137 IntPtr gcHandlePtr = IntPtr.Zero;
140 Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr);
144 Monitor.Enter(Efl.All.InitLock);
145 if (Efl.All.MainLoopInitialized)
147 Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr);
150 Monitor.Exit(Efl.All.InitLock);
156 ///<summary>Releases the underlying native instance.</summary>
157 public void Dispose()
160 GC.SuppressFinalize(this);
163 /// <summary>Verifies if the given object is equal to this one.</summary>
164 /// <param name="instance">The object to compare to.</param>
165 /// <returns>True if both objects point to the same native object.</returns>
166 public override bool Equals(object instance)
168 var other = instance as Efl.Object;
173 return this.NativeHandle == other.NativeHandle;
176 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
177 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
178 public override int GetHashCode()
180 return this.NativeHandle.ToInt32();
183 /// <summary>Turns the native pointer into a string representation.</summary>
184 /// <returns>A string with the type and the native pointer for this object.</returns>
185 public override String ToString()
187 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
190 /// <summary>Gets the draggable object location.</summary>
191 /// <param name="dx">The x relative position, from 0 to 1.</param>
192 /// <param name="dy">The y relative position, from 0 to 1.</param>
193 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
194 public bool GetDragValue(out double dx, out double dy) {
195 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_get_ptr.Value.Delegate(this.NativeHandle,out dx, out dy);
196 Eina.Error.RaiseIfUnhandledException();
199 /// <summary>Sets the draggable object location.
200 /// This places the draggable object at the given location.</summary>
201 /// <param name="dx">The x relative position, from 0 to 1.</param>
202 /// <param name="dy">The y relative position, from 0 to 1.</param>
203 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
204 public bool SetDragValue(double dx, double dy) {
205 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_set_ptr.Value.Delegate(this.NativeHandle,dx, dy);
206 Eina.Error.RaiseIfUnhandledException();
209 /// <summary>Gets the size of the dradgable object.</summary>
210 /// <param name="dw">The drag relative width, from 0 to 1.</param>
211 /// <param name="dh">The drag relative height, from 0 to 1.</param>
212 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
213 public bool GetDragSize(out double dw, out double dh) {
214 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_get_ptr.Value.Delegate(this.NativeHandle,out dw, out dh);
215 Eina.Error.RaiseIfUnhandledException();
218 /// <summary>Sets the size of the draggable object.</summary>
219 /// <param name="dw">The drag relative width, from 0 to 1.</param>
220 /// <param name="dh">The drag relative height, from 0 to 1.</param>
221 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
222 public bool SetDragSize(double dw, double dh) {
223 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_set_ptr.Value.Delegate(this.NativeHandle,dw, dh);
224 Eina.Error.RaiseIfUnhandledException();
227 /// <summary>Gets the draggable direction.</summary>
228 /// <returns>The direction(s) premitted for drag.</returns>
229 public Efl.Ui.DragDir GetDragDir() {
230 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_dir_get_ptr.Value.Delegate(this.NativeHandle);
231 Eina.Error.RaiseIfUnhandledException();
234 /// <summary>Gets the x and y step increments for the draggable object.</summary>
235 /// <param name="dx">The x step relative amount, from 0 to 1.</param>
236 /// <param name="dy">The y step relative amount, from 0 to 1.</param>
237 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
238 public bool GetDragStep(out double dx, out double dy) {
239 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_get_ptr.Value.Delegate(this.NativeHandle,out dx, out dy);
240 Eina.Error.RaiseIfUnhandledException();
243 /// <summary>Sets the x,y step increments for a draggable object.</summary>
244 /// <param name="dx">The x step relative amount, from 0 to 1.</param>
245 /// <param name="dy">The y step relative amount, from 0 to 1.</param>
246 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
247 public bool SetDragStep(double dx, double dy) {
248 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_set_ptr.Value.Delegate(this.NativeHandle,dx, dy);
249 Eina.Error.RaiseIfUnhandledException();
252 /// <summary>Gets the x,y page step increments for the draggable object.</summary>
253 /// <param name="dx">The x page step increment</param>
254 /// <param name="dy">The y page step increment</param>
255 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
256 public bool GetDragPage(out double dx, out double dy) {
257 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_get_ptr.Value.Delegate(this.NativeHandle,out dx, out dy);
258 Eina.Error.RaiseIfUnhandledException();
261 /// <summary>Sets the x,y page step increment values.</summary>
262 /// <param name="dx">The x page step increment</param>
263 /// <param name="dy">The y page step increment</param>
264 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
265 public bool SetDragPage(double dx, double dy) {
266 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_set_ptr.Value.Delegate(this.NativeHandle,dx, dy);
267 Eina.Error.RaiseIfUnhandledException();
270 /// <summary>Moves the draggable by <c>dx</c>,<c>dy</c> steps.
271 /// This moves the draggable part by <c>dx</c>,<c>dy</c> steps where the step increment is the amount set by <see cref="Efl.Ui.IDrag.GetDragStep"/>.
273 /// <c>dx</c> and <c>dy</c> can be positive or negative numbers, integer values are recommended.</summary>
274 /// <param name="dx">The number of steps horizontally.</param>
275 /// <param name="dy">The number of steps vertically.</param>
276 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
277 public bool MoveDragStep(double dx, double dy) {
278 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_move_ptr.Value.Delegate(this.NativeHandle,dx, dy);
279 Eina.Error.RaiseIfUnhandledException();
282 /// <summary>Moves the draggable by <c>dx</c>,<c>dy</c> pages.
283 /// This moves the draggable by <c>dx</c>,<c>dy</c> pages. The increment is defined by <see cref="Efl.Ui.IDrag.GetDragPage"/>.
285 /// <c>dx</c> and <c>dy</c> can be positive or negative numbers, integer values are recommended.
287 /// Warning: Paging is bugged!</summary>
288 /// <param name="dx">The number of pages horizontally.</param>
289 /// <param name="dy">The number of pages vertically.</param>
290 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
291 public bool MoveDragPage(double dx, double dy) {
292 var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_move_ptr.Value.Delegate(this.NativeHandle,dx, dy);
293 Eina.Error.RaiseIfUnhandledException();
296 /// <summary>Determines the draggable directions (read-only).
297 /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes <c>x</c> and <c>y</c>. See the EDC reference documentation for more information.</summary>
298 /// <value>The direction(s) premitted for drag.</value>
299 public Efl.Ui.DragDir DragDir {
300 get { return GetDragDir(); }
302 private static IntPtr GetEflClassStatic()
304 return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get();
306 /// <summary>Wrapper for native methods and virtual method delegates.
307 /// For internal use by generated code only.</summary>
308 public class NativeMethods : Efl.Eo.NativeClass
310 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
311 /// <summary>Gets the list of Eo operations to override.</summary>
312 /// <returns>The list of Eo operations to be overload.</returns>
313 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
315 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
316 var methods = Efl.Eo.Globals.GetUserMethods(type);
318 if (efl_ui_drag_value_get_static_delegate == null)
320 efl_ui_drag_value_get_static_delegate = new efl_ui_drag_value_get_delegate(drag_value_get);
323 if (methods.FirstOrDefault(m => m.Name == "GetDragValue") != null)
325 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_value_get_static_delegate) });
328 if (efl_ui_drag_value_set_static_delegate == null)
330 efl_ui_drag_value_set_static_delegate = new efl_ui_drag_value_set_delegate(drag_value_set);
333 if (methods.FirstOrDefault(m => m.Name == "SetDragValue") != null)
335 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_value_set_static_delegate) });
338 if (efl_ui_drag_size_get_static_delegate == null)
340 efl_ui_drag_size_get_static_delegate = new efl_ui_drag_size_get_delegate(drag_size_get);
343 if (methods.FirstOrDefault(m => m.Name == "GetDragSize") != null)
345 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_size_get_static_delegate) });
348 if (efl_ui_drag_size_set_static_delegate == null)
350 efl_ui_drag_size_set_static_delegate = new efl_ui_drag_size_set_delegate(drag_size_set);
353 if (methods.FirstOrDefault(m => m.Name == "SetDragSize") != null)
355 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_size_set_static_delegate) });
358 if (efl_ui_drag_dir_get_static_delegate == null)
360 efl_ui_drag_dir_get_static_delegate = new efl_ui_drag_dir_get_delegate(drag_dir_get);
363 if (methods.FirstOrDefault(m => m.Name == "GetDragDir") != null)
365 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_dir_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_dir_get_static_delegate) });
368 if (efl_ui_drag_step_get_static_delegate == null)
370 efl_ui_drag_step_get_static_delegate = new efl_ui_drag_step_get_delegate(drag_step_get);
373 if (methods.FirstOrDefault(m => m.Name == "GetDragStep") != null)
375 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_step_get_static_delegate) });
378 if (efl_ui_drag_step_set_static_delegate == null)
380 efl_ui_drag_step_set_static_delegate = new efl_ui_drag_step_set_delegate(drag_step_set);
383 if (methods.FirstOrDefault(m => m.Name == "SetDragStep") != null)
385 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_step_set_static_delegate) });
388 if (efl_ui_drag_page_get_static_delegate == null)
390 efl_ui_drag_page_get_static_delegate = new efl_ui_drag_page_get_delegate(drag_page_get);
393 if (methods.FirstOrDefault(m => m.Name == "GetDragPage") != null)
395 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_page_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_page_get_static_delegate) });
398 if (efl_ui_drag_page_set_static_delegate == null)
400 efl_ui_drag_page_set_static_delegate = new efl_ui_drag_page_set_delegate(drag_page_set);
403 if (methods.FirstOrDefault(m => m.Name == "SetDragPage") != null)
405 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_page_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_page_set_static_delegate) });
408 if (efl_ui_drag_step_move_static_delegate == null)
410 efl_ui_drag_step_move_static_delegate = new efl_ui_drag_step_move_delegate(drag_step_move);
413 if (methods.FirstOrDefault(m => m.Name == "MoveDragStep") != null)
415 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_step_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_step_move_static_delegate) });
418 if (efl_ui_drag_page_move_static_delegate == null)
420 efl_ui_drag_page_move_static_delegate = new efl_ui_drag_page_move_delegate(drag_page_move);
423 if (methods.FirstOrDefault(m => m.Name == "MoveDragPage") != null)
425 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_page_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_page_move_static_delegate) });
430 /// <summary>Returns the Eo class for the native methods of this class.</summary>
431 /// <returns>The native class pointer.</returns>
432 public override IntPtr GetEflClass()
434 return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get();
437 #pragma warning disable CA1707, SA1300, SA1600
439 [return: MarshalAs(UnmanagedType.U1)]
440 private delegate bool efl_ui_drag_value_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy);
442 [return: MarshalAs(UnmanagedType.U1)]
443 public delegate bool efl_ui_drag_value_get_api_delegate(System.IntPtr obj, out double dx, out double dy);
445 public static Efl.Eo.FunctionWrapper<efl_ui_drag_value_get_api_delegate> efl_ui_drag_value_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_value_get_api_delegate>(Module, "efl_ui_drag_value_get");
447 private static bool drag_value_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy)
449 Eina.Log.Debug("function efl_ui_drag_value_get was called");
450 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
453 dx = default(double); dy = default(double); bool _ret_var = default(bool);
456 _ret_var = ((IDrag)wrapper).GetDragValue(out dx, out dy);
460 Eina.Log.Warning($"Callback error: {e.ToString()}");
461 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
469 return efl_ui_drag_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dx, out dy);
473 private static efl_ui_drag_value_get_delegate efl_ui_drag_value_get_static_delegate;
475 [return: MarshalAs(UnmanagedType.U1)]
476 private delegate bool efl_ui_drag_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy);
478 [return: MarshalAs(UnmanagedType.U1)]
479 public delegate bool efl_ui_drag_value_set_api_delegate(System.IntPtr obj, double dx, double dy);
481 public static Efl.Eo.FunctionWrapper<efl_ui_drag_value_set_api_delegate> efl_ui_drag_value_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_value_set_api_delegate>(Module, "efl_ui_drag_value_set");
483 private static bool drag_value_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy)
485 Eina.Log.Debug("function efl_ui_drag_value_set was called");
486 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
489 bool _ret_var = default(bool);
492 _ret_var = ((IDrag)wrapper).SetDragValue(dx, dy);
496 Eina.Log.Warning($"Callback error: {e.ToString()}");
497 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
505 return efl_ui_drag_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy);
509 private static efl_ui_drag_value_set_delegate efl_ui_drag_value_set_static_delegate;
511 [return: MarshalAs(UnmanagedType.U1)]
512 private delegate bool efl_ui_drag_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dw, out double dh);
514 [return: MarshalAs(UnmanagedType.U1)]
515 public delegate bool efl_ui_drag_size_get_api_delegate(System.IntPtr obj, out double dw, out double dh);
517 public static Efl.Eo.FunctionWrapper<efl_ui_drag_size_get_api_delegate> efl_ui_drag_size_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_size_get_api_delegate>(Module, "efl_ui_drag_size_get");
519 private static bool drag_size_get(System.IntPtr obj, System.IntPtr pd, out double dw, out double dh)
521 Eina.Log.Debug("function efl_ui_drag_size_get was called");
522 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
525 dw = default(double); dh = default(double); bool _ret_var = default(bool);
528 _ret_var = ((IDrag)wrapper).GetDragSize(out dw, out dh);
532 Eina.Log.Warning($"Callback error: {e.ToString()}");
533 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
541 return efl_ui_drag_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dw, out dh);
545 private static efl_ui_drag_size_get_delegate efl_ui_drag_size_get_static_delegate;
547 [return: MarshalAs(UnmanagedType.U1)]
548 private delegate bool efl_ui_drag_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double dw, double dh);
550 [return: MarshalAs(UnmanagedType.U1)]
551 public delegate bool efl_ui_drag_size_set_api_delegate(System.IntPtr obj, double dw, double dh);
553 public static Efl.Eo.FunctionWrapper<efl_ui_drag_size_set_api_delegate> efl_ui_drag_size_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_size_set_api_delegate>(Module, "efl_ui_drag_size_set");
555 private static bool drag_size_set(System.IntPtr obj, System.IntPtr pd, double dw, double dh)
557 Eina.Log.Debug("function efl_ui_drag_size_set was called");
558 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
561 bool _ret_var = default(bool);
564 _ret_var = ((IDrag)wrapper).SetDragSize(dw, dh);
568 Eina.Log.Warning($"Callback error: {e.ToString()}");
569 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
577 return efl_ui_drag_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dw, dh);
581 private static efl_ui_drag_size_set_delegate efl_ui_drag_size_set_static_delegate;
584 private delegate Efl.Ui.DragDir efl_ui_drag_dir_get_delegate(System.IntPtr obj, System.IntPtr pd);
587 public delegate Efl.Ui.DragDir efl_ui_drag_dir_get_api_delegate(System.IntPtr obj);
589 public static Efl.Eo.FunctionWrapper<efl_ui_drag_dir_get_api_delegate> efl_ui_drag_dir_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_dir_get_api_delegate>(Module, "efl_ui_drag_dir_get");
591 private static Efl.Ui.DragDir drag_dir_get(System.IntPtr obj, System.IntPtr pd)
593 Eina.Log.Debug("function efl_ui_drag_dir_get was called");
594 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
597 Efl.Ui.DragDir _ret_var = default(Efl.Ui.DragDir);
600 _ret_var = ((IDrag)wrapper).GetDragDir();
604 Eina.Log.Warning($"Callback error: {e.ToString()}");
605 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
613 return efl_ui_drag_dir_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
617 private static efl_ui_drag_dir_get_delegate efl_ui_drag_dir_get_static_delegate;
619 [return: MarshalAs(UnmanagedType.U1)]
620 private delegate bool efl_ui_drag_step_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy);
622 [return: MarshalAs(UnmanagedType.U1)]
623 public delegate bool efl_ui_drag_step_get_api_delegate(System.IntPtr obj, out double dx, out double dy);
625 public static Efl.Eo.FunctionWrapper<efl_ui_drag_step_get_api_delegate> efl_ui_drag_step_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_step_get_api_delegate>(Module, "efl_ui_drag_step_get");
627 private static bool drag_step_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy)
629 Eina.Log.Debug("function efl_ui_drag_step_get was called");
630 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
633 dx = default(double); dy = default(double); bool _ret_var = default(bool);
636 _ret_var = ((IDrag)wrapper).GetDragStep(out dx, out dy);
640 Eina.Log.Warning($"Callback error: {e.ToString()}");
641 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
649 return efl_ui_drag_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dx, out dy);
653 private static efl_ui_drag_step_get_delegate efl_ui_drag_step_get_static_delegate;
655 [return: MarshalAs(UnmanagedType.U1)]
656 private delegate bool efl_ui_drag_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy);
658 [return: MarshalAs(UnmanagedType.U1)]
659 public delegate bool efl_ui_drag_step_set_api_delegate(System.IntPtr obj, double dx, double dy);
661 public static Efl.Eo.FunctionWrapper<efl_ui_drag_step_set_api_delegate> efl_ui_drag_step_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_step_set_api_delegate>(Module, "efl_ui_drag_step_set");
663 private static bool drag_step_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy)
665 Eina.Log.Debug("function efl_ui_drag_step_set was called");
666 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
669 bool _ret_var = default(bool);
672 _ret_var = ((IDrag)wrapper).SetDragStep(dx, dy);
676 Eina.Log.Warning($"Callback error: {e.ToString()}");
677 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
685 return efl_ui_drag_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy);
689 private static efl_ui_drag_step_set_delegate efl_ui_drag_step_set_static_delegate;
691 [return: MarshalAs(UnmanagedType.U1)]
692 private delegate bool efl_ui_drag_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy);
694 [return: MarshalAs(UnmanagedType.U1)]
695 public delegate bool efl_ui_drag_page_get_api_delegate(System.IntPtr obj, out double dx, out double dy);
697 public static Efl.Eo.FunctionWrapper<efl_ui_drag_page_get_api_delegate> efl_ui_drag_page_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_page_get_api_delegate>(Module, "efl_ui_drag_page_get");
699 private static bool drag_page_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy)
701 Eina.Log.Debug("function efl_ui_drag_page_get was called");
702 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
705 dx = default(double); dy = default(double); bool _ret_var = default(bool);
708 _ret_var = ((IDrag)wrapper).GetDragPage(out dx, out dy);
712 Eina.Log.Warning($"Callback error: {e.ToString()}");
713 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
721 return efl_ui_drag_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dx, out dy);
725 private static efl_ui_drag_page_get_delegate efl_ui_drag_page_get_static_delegate;
727 [return: MarshalAs(UnmanagedType.U1)]
728 private delegate bool efl_ui_drag_page_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy);
730 [return: MarshalAs(UnmanagedType.U1)]
731 public delegate bool efl_ui_drag_page_set_api_delegate(System.IntPtr obj, double dx, double dy);
733 public static Efl.Eo.FunctionWrapper<efl_ui_drag_page_set_api_delegate> efl_ui_drag_page_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_page_set_api_delegate>(Module, "efl_ui_drag_page_set");
735 private static bool drag_page_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy)
737 Eina.Log.Debug("function efl_ui_drag_page_set was called");
738 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
741 bool _ret_var = default(bool);
744 _ret_var = ((IDrag)wrapper).SetDragPage(dx, dy);
748 Eina.Log.Warning($"Callback error: {e.ToString()}");
749 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
757 return efl_ui_drag_page_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy);
761 private static efl_ui_drag_page_set_delegate efl_ui_drag_page_set_static_delegate;
763 [return: MarshalAs(UnmanagedType.U1)]
764 private delegate bool efl_ui_drag_step_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy);
766 [return: MarshalAs(UnmanagedType.U1)]
767 public delegate bool efl_ui_drag_step_move_api_delegate(System.IntPtr obj, double dx, double dy);
769 public static Efl.Eo.FunctionWrapper<efl_ui_drag_step_move_api_delegate> efl_ui_drag_step_move_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_step_move_api_delegate>(Module, "efl_ui_drag_step_move");
771 private static bool drag_step_move(System.IntPtr obj, System.IntPtr pd, double dx, double dy)
773 Eina.Log.Debug("function efl_ui_drag_step_move was called");
774 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
777 bool _ret_var = default(bool);
780 _ret_var = ((IDrag)wrapper).MoveDragStep(dx, dy);
784 Eina.Log.Warning($"Callback error: {e.ToString()}");
785 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
793 return efl_ui_drag_step_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy);
797 private static efl_ui_drag_step_move_delegate efl_ui_drag_step_move_static_delegate;
799 [return: MarshalAs(UnmanagedType.U1)]
800 private delegate bool efl_ui_drag_page_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy);
802 [return: MarshalAs(UnmanagedType.U1)]
803 public delegate bool efl_ui_drag_page_move_api_delegate(System.IntPtr obj, double dx, double dy);
805 public static Efl.Eo.FunctionWrapper<efl_ui_drag_page_move_api_delegate> efl_ui_drag_page_move_ptr = new Efl.Eo.FunctionWrapper<efl_ui_drag_page_move_api_delegate>(Module, "efl_ui_drag_page_move");
807 private static bool drag_page_move(System.IntPtr obj, System.IntPtr pd, double dx, double dy)
809 Eina.Log.Debug("function efl_ui_drag_page_move was called");
810 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
813 bool _ret_var = default(bool);
816 _ret_var = ((IDrag)wrapper).MoveDragPage(dx, dy);
820 Eina.Log.Warning($"Callback error: {e.ToString()}");
821 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
829 return efl_ui_drag_page_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy);
833 private static efl_ui_drag_page_move_delegate efl_ui_drag_page_move_static_delegate;
835 #pragma warning restore CA1707, SA1300, SA1600