#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { /// Common interface for draggable objects and parts. /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IDragConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IDrag : Efl.Eo.IWrapper, IDisposable { /// Gets the draggable object location. /// The x relative position, from 0 to 1. /// The y relative position, from 0 to 1. /// true on success, false otherwise bool GetDragValue(out double dx, out double dy); /// Sets the draggable object location. /// This places the draggable object at the given location. /// The x relative position, from 0 to 1. /// The y relative position, from 0 to 1. /// true on success, false otherwise bool SetDragValue(double dx, double dy); /// Gets the size of the dradgable object. /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise bool GetDragSize(out double dw, out double dh); /// Sets the size of the draggable object. /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise bool SetDragSize(double dw, double dh); /// Gets the draggable direction. /// The direction(s) premitted for drag. Efl.Ui.DragDir GetDragDir(); /// Gets the x and y step increments for the draggable object. /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise bool GetDragStep(out double dx, out double dy); /// Sets the x,y step increments for a draggable object. /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise bool SetDragStep(double dx, double dy); /// Gets the x,y page step increments for the draggable object. /// The x page step increment /// The y page step increment /// true on success, false otherwise bool GetDragPage(out double dx, out double dy); /// Sets the x,y page step increment values. /// The x page step increment /// The y page step increment /// true on success, false otherwise bool SetDragPage(double dx, double dy); /// Moves the draggable by dx,dy steps. /// This moves the draggable part by dx,dy steps where the step increment is the amount set by . /// /// dx and dy can be positive or negative numbers, integer values are recommended. /// The number of steps horizontally. /// The number of steps vertically. /// true on success, false otherwise bool MoveDragStep(double dx, double dy); /// Moves the draggable by dx,dy pages. /// This moves the draggable by dx,dy pages. The increment is defined by . /// /// dx and dy can be positive or negative numbers, integer values are recommended. /// /// Warning: Paging is bugged! /// The number of pages horizontally. /// The number of pages vertically. /// true on success, false otherwise bool MoveDragPage(double dx, double dy); /// The draggable object relative location. /// Some parts in Edje can be dragged along the X/Y axes, if the part contains a "draggable" section (in EDC). For instance, scroll bars can be draggable objects. /// /// dx and dy are real numbers that range from 0 to 1, representing the relative position to the draggable area on that axis. /// /// This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y in the draggable part theme is 1 and at the bottom if it is -1. /// /// For the horizontal axis, 0.0 means left if the first parameter of x in the draggable part theme is 1, and right if it is -1. /// The x relative position, from 0 to 1. (double, double) DragValue { get; set; } /// The draggable object relative size. /// Values for dw and dh are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis. /// /// For instance a scroll bar handle size may depend on the size of the scroller's content. /// The drag relative width, from 0 to 1. (double, double) DragSize { get; set; } /// Determines the draggable directions (read-only). /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes x and y. See the EDC reference documentation for more information. /// The direction(s) premitted for drag. Efl.Ui.DragDir DragDir { get; } /// The drag step increment. /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. /// /// This differs from in that this is meant to represent a unit increment, like a single line for example. /// /// See also . /// The x step relative amount, from 0 to 1. (double, double) DragStep { get; set; } /// The page step increments. /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. /// /// This differs from in that this is meant to be a larger step size, basically an entire page as opposed to a single or couple of lines. /// /// See also . /// The x page step increment (double, double) DragPage { get; set; } } /// Common interface for draggable objects and parts. /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. sealed public class IDragConcrete : Efl.Eo.EoWrapper , IDrag { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(IDragConcrete)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IDragConcrete(ConstructingHandle ch) : base(ch) { } [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr efl_ui_drag_interface_get(); /// Initializes a new instance of the class. /// Internal usage: This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. private IDragConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Gets the draggable object location. /// The x relative position, from 0 to 1. /// The y relative position, from 0 to 1. /// true on success, false otherwise public bool GetDragValue(out double dx, out double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_get_ptr.Value.Delegate(this.NativeHandle,out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the draggable object location. /// This places the draggable object at the given location. /// The x relative position, from 0 to 1. /// The y relative position, from 0 to 1. /// true on success, false otherwise public bool SetDragValue(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_set_ptr.Value.Delegate(this.NativeHandle,dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the size of the dradgable object. /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise public bool GetDragSize(out double dw, out double dh) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_get_ptr.Value.Delegate(this.NativeHandle,out dw, out dh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the size of the draggable object. /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise public bool SetDragSize(double dw, double dh) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_set_ptr.Value.Delegate(this.NativeHandle,dw, dh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the draggable direction. /// The direction(s) premitted for drag. public Efl.Ui.DragDir GetDragDir() { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_dir_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the x and y step increments for the draggable object. /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise public bool GetDragStep(out double dx, out double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_get_ptr.Value.Delegate(this.NativeHandle,out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the x,y step increments for a draggable object. /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise public bool SetDragStep(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_set_ptr.Value.Delegate(this.NativeHandle,dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the x,y page step increments for the draggable object. /// The x page step increment /// The y page step increment /// true on success, false otherwise public bool GetDragPage(out double dx, out double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_get_ptr.Value.Delegate(this.NativeHandle,out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the x,y page step increment values. /// The x page step increment /// The y page step increment /// true on success, false otherwise public bool SetDragPage(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_set_ptr.Value.Delegate(this.NativeHandle,dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the draggable by dx,dy steps. /// This moves the draggable part by dx,dy steps where the step increment is the amount set by . /// /// dx and dy can be positive or negative numbers, integer values are recommended. /// The number of steps horizontally. /// The number of steps vertically. /// true on success, false otherwise public bool MoveDragStep(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_move_ptr.Value.Delegate(this.NativeHandle,dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the draggable by dx,dy pages. /// This moves the draggable by dx,dy pages. The increment is defined by . /// /// dx and dy can be positive or negative numbers, integer values are recommended. /// /// Warning: Paging is bugged! /// The number of pages horizontally. /// The number of pages vertically. /// true on success, false otherwise public bool MoveDragPage(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_move_ptr.Value.Delegate(this.NativeHandle,dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The draggable object relative location. /// Some parts in Edje can be dragged along the X/Y axes, if the part contains a "draggable" section (in EDC). For instance, scroll bars can be draggable objects. /// /// dx and dy are real numbers that range from 0 to 1, representing the relative position to the draggable area on that axis. /// /// This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y in the draggable part theme is 1 and at the bottom if it is -1. /// /// For the horizontal axis, 0.0 means left if the first parameter of x in the draggable part theme is 1, and right if it is -1. /// The x relative position, from 0 to 1. public (double, double) DragValue { get { double _out_dx = default(double); double _out_dy = default(double); GetDragValue(out _out_dx,out _out_dy); return (_out_dx,_out_dy); } set { SetDragValue( value.Item1, value.Item2); } } /// The draggable object relative size. /// Values for dw and dh are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis. /// /// For instance a scroll bar handle size may depend on the size of the scroller's content. /// The drag relative width, from 0 to 1. public (double, double) DragSize { get { double _out_dw = default(double); double _out_dh = default(double); GetDragSize(out _out_dw,out _out_dh); return (_out_dw,_out_dh); } set { SetDragSize( value.Item1, value.Item2); } } /// Determines the draggable directions (read-only). /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes x and y. See the EDC reference documentation for more information. /// The direction(s) premitted for drag. public Efl.Ui.DragDir DragDir { get { return GetDragDir(); } } /// The drag step increment. /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. /// /// This differs from in that this is meant to represent a unit increment, like a single line for example. /// /// See also . /// The x step relative amount, from 0 to 1. public (double, double) DragStep { get { double _out_dx = default(double); double _out_dy = default(double); GetDragStep(out _out_dx,out _out_dy); return (_out_dx,_out_dy); } set { SetDragStep( value.Item1, value.Item2); } } /// The page step increments. /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. /// /// This differs from in that this is meant to be a larger step size, basically an entire page as opposed to a single or couple of lines. /// /// See also . /// The x page step increment public (double, double) DragPage { get { double _out_dx = default(double); double _out_dy = default(double); GetDragPage(out _out_dx,out _out_dy); return (_out_dx,_out_dy); } set { SetDragPage( value.Item1, value.Item2); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_ui_drag_value_get_static_delegate == null) { efl_ui_drag_value_get_static_delegate = new efl_ui_drag_value_get_delegate(drag_value_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragValue") != null) { 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) }); } if (efl_ui_drag_value_set_static_delegate == null) { efl_ui_drag_value_set_static_delegate = new efl_ui_drag_value_set_delegate(drag_value_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragValue") != null) { 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) }); } if (efl_ui_drag_size_get_static_delegate == null) { efl_ui_drag_size_get_static_delegate = new efl_ui_drag_size_get_delegate(drag_size_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragSize") != null) { 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) }); } if (efl_ui_drag_size_set_static_delegate == null) { efl_ui_drag_size_set_static_delegate = new efl_ui_drag_size_set_delegate(drag_size_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragSize") != null) { 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) }); } if (efl_ui_drag_dir_get_static_delegate == null) { efl_ui_drag_dir_get_static_delegate = new efl_ui_drag_dir_get_delegate(drag_dir_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragDir") != null) { 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) }); } if (efl_ui_drag_step_get_static_delegate == null) { efl_ui_drag_step_get_static_delegate = new efl_ui_drag_step_get_delegate(drag_step_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragStep") != null) { 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) }); } if (efl_ui_drag_step_set_static_delegate == null) { efl_ui_drag_step_set_static_delegate = new efl_ui_drag_step_set_delegate(drag_step_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragStep") != null) { 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) }); } if (efl_ui_drag_page_get_static_delegate == null) { efl_ui_drag_page_get_static_delegate = new efl_ui_drag_page_get_delegate(drag_page_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragPage") != null) { 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) }); } if (efl_ui_drag_page_set_static_delegate == null) { efl_ui_drag_page_set_static_delegate = new efl_ui_drag_page_set_delegate(drag_page_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragPage") != null) { 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) }); } if (efl_ui_drag_step_move_static_delegate == null) { efl_ui_drag_step_move_static_delegate = new efl_ui_drag_step_move_delegate(drag_step_move); } if (methods.FirstOrDefault(m => m.Name == "MoveDragStep") != null) { 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) }); } if (efl_ui_drag_page_move_static_delegate == null) { efl_ui_drag_page_move_static_delegate = new efl_ui_drag_page_move_delegate(drag_page_move); } if (methods.FirstOrDefault(m => m.Name == "MoveDragPage") != null) { 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) }); } return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_value_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_value_get_api_delegate(System.IntPtr obj, out double dx, out double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_value_get"); private static bool drag_value_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy) { Eina.Log.Debug("function efl_ui_drag_value_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dx = default(double); dy = default(double); bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).GetDragValue(out dx, out dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { 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); } } private static efl_ui_drag_value_get_delegate efl_ui_drag_value_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_value_set_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_value_set"); private static bool drag_value_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_value_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).SetDragValue(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_value_set_delegate efl_ui_drag_value_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dw, out double dh); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_size_get_api_delegate(System.IntPtr obj, out double dw, out double dh); public static Efl.Eo.FunctionWrapper efl_ui_drag_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_size_get"); private static bool drag_size_get(System.IntPtr obj, System.IntPtr pd, out double dw, out double dh) { Eina.Log.Debug("function efl_ui_drag_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dw = default(double); dh = default(double); bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).GetDragSize(out dw, out dh); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { 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); } } private static efl_ui_drag_size_get_delegate efl_ui_drag_size_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double dw, double dh); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_size_set_api_delegate(System.IntPtr obj, double dw, double dh); public static Efl.Eo.FunctionWrapper efl_ui_drag_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_size_set"); private static bool drag_size_set(System.IntPtr obj, System.IntPtr pd, double dw, double dh) { Eina.Log.Debug("function efl_ui_drag_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).SetDragSize(dw, dh); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dw, dh); } } private static efl_ui_drag_size_set_delegate efl_ui_drag_size_set_static_delegate; private delegate Efl.Ui.DragDir efl_ui_drag_dir_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Ui.DragDir efl_ui_drag_dir_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_drag_dir_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_dir_get"); private static Efl.Ui.DragDir drag_dir_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_drag_dir_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.DragDir _ret_var = default(Efl.Ui.DragDir); try { _ret_var = ((IDrag)ws.Target).GetDragDir(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_dir_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_drag_dir_get_delegate efl_ui_drag_dir_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_step_get_api_delegate(System.IntPtr obj, out double dx, out double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_step_get"); private static bool drag_step_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy) { Eina.Log.Debug("function efl_ui_drag_step_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dx = default(double); dy = default(double); bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).GetDragStep(out dx, out dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { 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); } } private static efl_ui_drag_step_get_delegate efl_ui_drag_step_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_step_set_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_step_set"); private static bool drag_step_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_step_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).SetDragStep(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_step_set_delegate efl_ui_drag_step_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_page_get_api_delegate(System.IntPtr obj, out double dx, out double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_page_get"); private static bool drag_page_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy) { Eina.Log.Debug("function efl_ui_drag_page_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dx = default(double); dy = default(double); bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).GetDragPage(out dx, out dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { 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); } } private static efl_ui_drag_page_get_delegate efl_ui_drag_page_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_page_set_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_page_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_page_set"); private static bool drag_page_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_page_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).SetDragPage(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_page_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_page_set_delegate efl_ui_drag_page_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_step_move_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_step_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_step_move"); private static bool drag_step_move(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_step_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).MoveDragStep(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_step_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_step_move_delegate efl_ui_drag_step_move_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_page_move_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_page_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_page_move"); private static bool drag_page_move(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_page_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IDrag)ws.Target).MoveDragPage(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_page_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_page_move_delegate efl_ui_drag_page_move_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_UiIDragConcrete_ExtensionMethods { } #pragma warning restore CS1591 #endif